Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Middleware ¶
type Middleware struct {
// contains filtered or unexported fields
}
func New ¶
func New(c Config) (*Middleware, error)
func (*Middleware) Middleware ¶
func (m *Middleware) Middleware() atreugo.Middleware
Middleware validates if the request has an authorization `Bearer` type token, or if a token is present in the `token` URL parameter.
Click to show internal directories.
Click to hide internal directories.