package
3.10.13
Repository: https://github.com/micro-community/micro.git
Documentation: pkg.go.dev

# Functions

Authorize will return a service error if the context cannot access the given namespace.
AuthorizeAdmin returns a service error if the context is not an admin that can access this namespace e.g.
Public indicates a namespace is public and can be accessed by anyone.

# Constants

DefaultNamespace used by the server.

# Variables

ErrForbidden is returned by Authorize when a context is trying to access a namespace it doesn't have access to.
ErrUnauthorized is returned by Authorize when a context without a blank account tries to access a restricted namespace.

# Structs

AuthorizeOptions are used to configure the Authorize method.

# Type aliases

AuthorizeOption sets an attribute on AuthorizeOptions.