Documentation
¶
Index ¶
Constants ¶
View Source
const TokenBucketName = "tokenbucket"
TokenBucketName
View Source
const UserBucketName = "authbucket"
UserBucketName - default name for BoltDB bucket that stores user info
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthBackend ¶
BoltCache - container to implement Cache instance with BoltDB backend for storage
func NewAuthBackend ¶ added in v0.5.16
func NewAuthBackend(tokenCache, userCache cache.Cache) AuthBackend
func (*AuthBackend) AddUser ¶
func (b *AuthBackend) AddUser(username, password string, admin bool) error
func (*AuthBackend) GetAllUsers ¶
func (b *AuthBackend) GetAllUsers() (users []User, err error)
Click to show internal directories.
Click to hide internal directories.