tenant

package
v0.0.0-...-ecc6c17 Latest Latest
Warning

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

Go to latest
Published: Jul 11, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const TenantContextKey key = iota
View Source
const TenantHeaderName = "tenant"

Variables

This section is empty.

Functions

func LoadFromContext

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

func RequireAndPassContext

func RequireAndPassContext(next http.Handler) http.Handler

func SaveToContext

func SaveToContext(ctx context.Context, tenant string) context.Context

Types

This section is empty.

Jump to

Keyboard shortcuts

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