Documentation ¶
Index ¶
- Variables
- func Get[T ID](ctx context.Context, thing Value) (T, bool)
- func GetAddress(ctx context.Context) string
- func GetUserID[T ID](ctx context.Context) (T, bool)
- func IsSystem(ctx context.Context) bool
- func Set[T ID](ctx context.Context, thing Value, data T) context.Context
- func SetAddress(ctx context.Context, ip string) context.Context
- func SetSystem(ctx context.Context) context.Context
- func SetUserID[T ID](ctx context.Context, id T) context.Context
- type ID
- type Value
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ContextUserID = Value{"viewer_user_id"} ContextSystem = Value{"viewer_system"} ContextIP = Value{"viewer_ip"} )
Functions ¶
func GetAddress ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.