Documentation ¶
Index ¶
- Constants
- func ContextCorrelationID(ctx context.Context) string
- func New(logLevel string) *logrus.Logger
- func NewMiddleware(log *logrus.Entry) grpc.UnaryServerInterceptor
- func WithRequest(e *logrus.Entry, r fmt.Stringer) *logrus.Entry
- func WithResponse(e *logrus.Entry, r fmt.Stringer) *logrus.Entry
- func WithServerContext(ctx context.Context, e *logrus.Entry) *logrus.Entry
- func WithServiceRequest(e *logrus.Entry, r requestable) *logrus.Entry
Constants ¶
View Source
const ( HostKey string = "host" NodeIDKey string = "node_id" VolumeIDKey string = "volume_id" VolumeNameKey string = "volume_name" RequestKey string = "request" ResponseKey string = "response" ServiceURLKey string = "service_url" ServicePayloadKey string = "service_payload" CorrelationIDKey string = "correlation_id" MethodKey string = "method" FilesystemTypeKey string = "fs_type" MountOptionsKey string = "mount_options" MountSourceKey string = "source" MountTargetKey string = "target" CommandKey string = "cmd" CommandArgsKey string = "cmd_args" VolumeSourceKey string = "source_id" SnapshotIDKey string = "snapshot_id" ListStartingTokenKey string = "starting_token" ListMaxEntriesKey string = "max_entries" ZoneKey string = "zone" CtxCorrelationIDKey contextKey = "ctx_correlation_id" CtxCalledMethodKey contextKey = "ctx_called_method" )
Variables ¶
This section is empty.
Functions ¶
func ContextCorrelationID ¶
func NewMiddleware ¶
func NewMiddleware(log *logrus.Entry) grpc.UnaryServerInterceptor
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.