Documentation ¶
Index ¶
- func GetLogger(ctx context.Context) *logrus.Entry
- func GetMessage(ctx context.Context) *models.Message
- func GetRequestID(ctx context.Context) *string
- func IsOperator(ctx context.Context) bool
- func SetOperator(ctx context.Context) context.Context
- func WithMessage(ctx context.Context, message *models.Message) context.Context
- func WithRequestID(ctx context.Context, id *string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMessage ¶
GetMessage get context based request id
func GetRequestID ¶
GetRequestID get context based request id
func SetOperator ¶
SetOperator set operatorflag to context
func WithMessage ¶
WithMessage set a message to context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.