Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalid = errors.New("invalid authorization")
Functions ¶
Types ¶
type Authorizer ¶
type Authorizer struct {
// contains filtered or unexported fields
}
func (*Authorizer) AuthorizeKey ¶
func (a *Authorizer) AuthorizeKey(key string) (*Token, error)
func (*Authorizer) AuthorizeRequest ¶
func (a *Authorizer) AuthorizeRequest(req *http.Request) (*Token, error)
func (*Authorizer) AuthorizeToken ¶
func (a *Authorizer) AuthorizeToken(token string) (*Token, error)
Click to show internal directories.
Click to hide internal directories.