Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type JwtOptions ¶
type Middleware ¶
type Middleware struct {
Options JwtOptions
}
func NewJwt ¶
func NewJwt(opts JwtOptions) *Middleware
func (*Middleware) Serve ¶
func (m *Middleware) Serve() pine.Handler
type TokenExtractor ¶
func FromFirst ¶
func FromFirst(extractors ...TokenExtractor) TokenExtractor
func FromParameter ¶
func FromParameter(param string) TokenExtractor
Click to show internal directories.
Click to hide internal directories.