Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Authenticator ¶
type Authenticator struct {
// contains filtered or unexported fields
}
func NewAuthenticator ¶
func NewAuthenticator(sc *opt.SampleConfig, key interface{}) *Authenticator
func (*Authenticator) Authenticate ¶
func (a *Authenticator) Authenticate(r *http.Request) (*middleware.Credential, error)
type TokenGenerator ¶
type TokenGenerator struct {
// contains filtered or unexported fields
}
func NewHS256TokenGenerator ¶
func NewHS256TokenGenerator(key []byte) (*TokenGenerator, error)
func (*TokenGenerator) GenerateAll ¶
func (tg *TokenGenerator) GenerateAll(ctx context.Context, sc *opt.SampleConfig) *TokenMap
func (*TokenGenerator) Key ¶
func (tg *TokenGenerator) Key() interface{}
Click to show internal directories.
Click to hide internal directories.