context

package
v2.3.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 16, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAuthorizer

func GetAuthorizer(ctx context.Context) (influxdb.Authorizer, error)

GetAuthorizer retrieves an authorizer from context.

func GetToken

func GetToken(ctx context.Context) (string, error)

GetToken retrieves a token from the context; errors if no token.

func GetUserID

func GetUserID(ctx context.Context) (platform.ID, error)

GetUserID retrieves the user ID from the authorizer on the context.

func SetAuthorizer

func SetAuthorizer(ctx context.Context, a influxdb.Authorizer) context.Context

SetAuthorizer sets an authorizer on context.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL