Documentation ¶
Index ¶
- Constants
- func AddMessageId(ctx context.Context, messageId ...string) context.Context
- func ClearMessageId(ctx context.Context) context.Context
- func ContextWithSender(ctx context.Context, user *sender.Sender) context.Context
- func Copy(src, dst context.Context) context.Context
- func GetLocale(ctx context.Context) string
- func GetMessageId(ctx context.Context) []string
- func GetRequestId(ctx context.Context) string
- func GetSender(ctx context.Context) *sender.Sender
- func GetValueFromContext(ctx context.Context, key string) []string
- func SetLocale(ctx context.Context, locale string) context.Context
- func SetMessageId(ctx context.Context, messageId []string) context.Context
- func SetRequestId(ctx context.Context, requestId string) context.Context
Constants ¶
View Source
const ( SenderKey = "sender" TokenType = "Bearer" )
Variables ¶
This section is empty.
Functions ¶
func ContextWithSender ¶ added in v0.4.0
func GetMessageId ¶
func GetRequestId ¶
func GetValueFromContext ¶ added in v0.2.2
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.