Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOperationID ¶
GetOperationID get operationID of the context
func OperationIDMiddleware ¶
Middleware wraps the given HTTP handler so that the details of the request are sent to the log.
Types ¶
type OCMLogger ¶
type OCMLogger interface { V(level int32) OCMLogger Infof(format string, args ...interface{}) Extra(key string, value interface{}) OCMLogger Info(message string) Warning(message string) Error(message string) Fatal(message string) }
func NewOCMLogger ¶
NewOCMLogger creates a new logger instance with a default verbosity of 1
type OperationIDKey ¶
type OperationIDKey string
const OpIDHeader OperationIDKey = "X-Operation-ID"
const OpIDKey OperationIDKey = "opID"
Click to show internal directories.
Click to hide internal directories.