namespace

package
v3.0.0-...-9d75b9b Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultNamespace used by the server
	DefaultNamespace = "micro"
	// NamespaceKey is used to set/get the namespace from the context
	NamespaceKey = "Micro-Namespace"
)

Variables

This section is empty.

Functions

func ContextWithNamespace

func ContextWithNamespace(ctx context.Context, ns string) context.Context

ContextWithNamespace sets the namespace in the context

func FromContext

func FromContext(ctx context.Context) string

FromContext gets the namespace from the context

Types

This section is empty.

Jump to

Keyboard shortcuts

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