Documentation ¶
Index ¶
Constants ¶
View Source
const (
XCorrID = "X-Correlation-ID"
)
Variables ¶
This section is empty.
Functions ¶
func NewHystrixHelper ¶
func StartUpMessage ¶
func StartUpMessage()
Types ¶
type AppConfig ¶
type AppConfig struct { Config string `json:"config"` HTTPListenAddress string `json:"http"` GRPCListenAddress string `json:"grpc"` AuthServiceAddress string `json:"auth"` }
AppConfig provides the global configuration of the application.
type CoreRequest ¶
type CoreRequest struct {
// contains filtered or unexported fields
}
CoreRequest contains the two fields every request should have: a correlation ID and a user ID.
func NewCoreRequest ¶
func NewCoreRequest() *CoreRequest
func (CoreRequest) CorrelateRequest ¶
func (c CoreRequest) CorrelateRequest(h http.Handler) http.Handler
func (*CoreRequest) CorrelationID ¶
func (c *CoreRequest) CorrelationID() string
CorrelationID supports the Correlator interface
type Correlator ¶
type Correlator interface {
CorrelationID() string
}
Correlator returns the value of X-Correlation-ID from the HTTP request
Click to show internal directories.
Click to hide internal directories.