Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶ added in v1.2.0
type Config struct {
// contains filtered or unexported fields
}
Config of package
type SecurityQuestion ¶ added in v1.2.0
SecurityQuestion is a question for fighting against bot
type TokenStore ¶ added in v1.2.0
type TokenStore interface {
Store(value interface{}, duration time.Duration) string
Load(key string) (interface{}, bool)
Delete(key string)
Clean(currentTime time.Time) error
}
TokenStore stores single usage token
func NewTokenStore ¶ added in v1.2.0
func NewTokenStore() TokenStore
NewTokenStore creates a new token store
Click to show internal directories.
Click to hide internal directories.