Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var DEBUG bool
Functions ¶
Types ¶
type Auth ¶
type Auth struct {
OauthConfig *oauth2.Config
Salt string
Store TokenStore
KeyGen KeyGenerator
DefaultURL string
}
func (*Auth) RedirectURL ¶
type ConstantKeyGenerator ¶
type ConstantKeyGenerator struct {
Key string
}
func (*ConstantKeyGenerator) GenerateKey ¶
type InmemoryStore ¶
type InmemoryStore struct {
TokenMap map[string]*oauth2.Token // apikey -> token
// contains filtered or unexported fields
}
func NewInmemoryStore ¶
func NewInmemoryStore() *InmemoryStore
type KeyGenerator ¶
type TokenStore ¶
Click to show internal directories.
Click to hide internal directories.