Documentation ¶
Index ¶
Constants ¶
View Source
const (
// DefaultNamespace used by the server
DefaultNamespace = "micro"
)
Variables ¶
View Source
var ( // a restricted namespace ErrUnauthorized = errors.New("an account is required") // ErrForbidden is returned by Authorize when a context is trying to access a namespace it doesn't // have access to ErrForbidden = errors.New("access denied to namespace") )
Functions ¶
Types ¶
type AuthorizeOption ¶
type AuthorizeOption func(o *AuthorizeOptions)
AuthorizeOption sets an attribute on AuthorizeOptions
func Public ¶
func Public(ns string) AuthorizeOption
Public indicates a namespace is public and can be accessed by anyone
type AuthorizeOptions ¶
type AuthorizeOptions struct {
PublicNamespace string
}
AuthorizeOptions are used to configure the Authorize method
Click to show internal directories.
Click to hide internal directories.