Documentation ¶
Index ¶
Constants ¶
View Source
const ( // TODO: Move default namespace out of go-micro DefaultNamespace = auth.DefaultNamespace // RuntimeNamespace is the namespace which runtime services // such as the store and broker operate within. Any service // can read runtime services but writing is restricted. RuntimeNamespace = "runtime" // NamespaceKey is used to set/get the namespace from the // context NamespaceKey = "Micro-Namespace" )
Variables ¶
This section is empty.
Functions ¶
func NamespaceFromContext ¶
NamespaceFromContext gets the namespace from the context
func NamespaceFromService ¶
NamespaceFromService returns the namespace the service belongs to
Types ¶
type Resolver ¶
type Resolver struct {
// contains filtered or unexported fields
}
Resolver determines the namespace for a request
func NewResolver ¶
Click to show internal directories.
Click to hide internal directories.