Documentation
¶
Index ¶
- func BucketID(ctx context.Context) uint64
- func Control(ctx context.Context) (map[string]any, bool)
- func IsAdmin(ctx context.Context) bool
- func RequestID(ctx context.Context) string
- func Role(ctx context.Context) string
- func WithBucketID(ctx context.Context, id uint64) context.Context
- func WithControl(ctx context.Context, control map[string]any) context.Context
- func WithRequestID(ctx context.Context, id string) context.Context
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WithBucketID ¶
WithBucketID adds bucket ID to the context.
func WithControl ¶
WithControl adds control claims to the context.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.