tenant

package
v0.250.1 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2024 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