Documentation
¶
Index ¶
- func GetIntValue(ctx context.Context, key ContextKeyInt) (int, bool)
- func GetStringValue(ctx context.Context, key ContextKeyString) (string, bool)
- func SetIntValue(ctx context.Context, key ContextKeyInt, value int) context.Context
- func SetStringValue(ctx context.Context, key ContextKeyString, value string) context.Context
- type ContextKeyInt
- type ContextKeyString
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetIntValue ¶
func GetIntValue(ctx context.Context, key ContextKeyInt) (int, bool)
func GetStringValue ¶
func GetStringValue(ctx context.Context, key ContextKeyString) (string, bool)
func SetIntValue ¶
func SetStringValue ¶
Types ¶
type ContextKeyInt ¶
type ContextKeyInt struct {
Key int
}
type ContextKeyString ¶
type ContextKeyString struct {
Key string
}
Click to show internal directories.
Click to hide internal directories.