Documentation ¶
Index ¶
- Constants
- func Background() context.Context
- func CorrelationId(ctx context.Context) string
- func New(ctx context.Context) context.Context
- func ShutDown() context.Context
- func StartUp() context.Context
- func Test(ctx context.Context) bool
- func WithCorrelationId(ctx context.Context, correlationId string) context.Context
- func WithCorrelationIdAppend(ctx context.Context, correlationId string) context.Context
- func WithTest(ctx context.Context, test bool) context.Context
Constants ¶
View Source
const ( CorrelationIdBackground = "BACKGROUND" CorrelationIdStartUp = "START_UP" CorrelationIdShutDown = "SHUT_DOWN" )
Correlation ID enums
Variables ¶
This section is empty.
Functions ¶
func Background ¶
Background returns a new background context with background correlation ID enum
func CorrelationId ¶
CorrelationId returns correlation ID value of ctx
func New ¶
New context with correlation ID of ctx with newly appended ctx, test value of ctx, and other defaults
func WithCorrelationId ¶
WithCorrelationId returns a new context with correlation ID value
func WithCorrelationIdAppend ¶
WithCorrelationIdAppend returns a new context with correlation ID value appended to existing correlation ID value if one exists
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.