Documentation ¶
Index ¶
- Constants
- func FindAndReadFile(fileName string, fileDesc string) (string, error)
- func NewAppConfig(cmd *cobra.Command) (*certMgr.AppConfig, error)
- func NewConfig(cmd *cobra.Command, defaultConfig interface{}, cfg interface{}) error
- func NewHystrixHelper(commandName string) (*hystrixHelper, error)
- func StartUpMessage(cfg certMgr.AppConfig)
- type CoreRequest
- type Correlator
Constants ¶
View Source
const (
XCorrID = "X-Correlation-ID"
)
Variables ¶
This section is empty.
Functions ¶
func FindAndReadFile ¶
FindAndReadFile loads the specified file from disk
func NewAppConfig ¶
NewAppConfig sets up all the basic configuration data from flags, env, etc
func NewHystrixHelper ¶
func StartUpMessage ¶
Types ¶
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.