Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
Client serial and scopes to determine if certain client can access certain method
func FromContext ¶
FromContext returns the User stored in ctx, if any.
type Scope ¶
type Scope string
Scope represents the level of access to various methods
const ( // WildcardScope represents access to all methods WildcardScope Scope = "WILDCARD" // PublicScope represents access to all public methods PublicScope Scope = "PUBLIC" // WriteScope represents access to all write methods WriteScope Scope = "WRITE" // ReadScope represents access to all read methods ReadScope Scope = "READ" )
Click to show internal directories.
Click to hide internal directories.