Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func FromContext ¶
func FromContext(ctx context.Context, key ContextKey) (string, bool)
func NewContext ¶
Types ¶
type ContextKey ¶
type ContextKey string
const ( TokenContextKey ContextKey = "bearer" UIDContextKey ContextKey = "uid" )
func (ContextKey) String ¶ added in v0.0.32
func (c ContextKey) String() string
type Deployments ¶
type Deployments string
const ( DeploymentsLocal Deployments = "local" DeploymentsDev Deployments = "dev" DeploymentsProd Deployments = "prod" )
func ParseDeployments ¶
func ParseDeployments(value string) Deployments
func (Deployments) IsProd ¶ added in v0.0.15
func (d Deployments) IsProd() bool
func (Deployments) String ¶
func (d Deployments) String() string
type WithoutAuth ¶ added in v0.0.19
type WithoutAuth struct{}
WithoutAuth overrides the default auth behavior and allows all methods to be called without an access token.
func (*WithoutAuth) AuthFuncOverride ¶ added in v0.0.19
AuthFuncOverride allows all methods to be unauthenticated.
Click to show internal directories.
Click to hide internal directories.