tenant

package
v0.164.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const CtxKey = "tenantID"

Variables

This section is empty.

Functions

func IDFromContext

func IDFromContext(ctx context.Context) string

IDFromContext returns tenant ID from context.

func IDFromIncomingGRPCContext

func IDFromIncomingGRPCContext(ctx context.Context) (string, bool)

IDFromIncomingGRPCContext returns tenant ID from incoming gRPC metadata.

func WithTenant

func WithTenant(ctx context.Context, tenantID string) context.Context

WithTenant injects supplied tenant ID into context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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