Documentation
¶
Index ¶
- Constants
- func Add(namespace, env string) error
- func ContextWithNamespace(ctx context.Context, ns string) context.Context
- func FromContext(ctx context.Context) string
- func Get(env string) (string, error)
- func List(env string) ([]string, error)
- func Remove(namespace, env string) error
- func Set(namespace, env string) error
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 ¶
ContextWithNamespace sets the namespace in the context
func FromContext ¶
FromContext gets the namespace from the context
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.