Documentation
¶
Index ¶
- func GetAuthorizer(ctx context.Context) (influxdb.Authorizer, error)
- func GetToken(ctx context.Context) (string, error)
- func GetUserID(ctx context.Context) (platform.ID, error)
- func ProvideAuthorizerStorage(ctx context.Context, ap *influxdb.Authorizer) context.Context
- func SetAuthorizer(ctx context.Context, a influxdb.Authorizer) context.Context
- func StoreAuthorizer(ctx context.Context, auth influxdb.Authorizer) bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetAuthorizer ¶
GetAuthorizer retrieves an authorizer from context.
func ProvideAuthorizerStorage ¶ added in v2.7.5
ProvideAuthorizerStorage puts a pointer to an Authorizer in the context. This is used to pass an Authorizer up the stack for logging purposes
func SetAuthorizer ¶
SetAuthorizer sets an authorizer on context.
func StoreAuthorizer ¶ added in v2.7.5
StoreAuthorizer stores an Authorizer in a pointer from the Context. This permits functions deep in the stack to set the pointer to return values up the call chain
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.