Documentation ¶
Index ¶
- Constants
- type AuthBackend
- type BoltAuth
- func (b *BoltAuth) AddUser(username, password []byte, admin bool) error
- func (b *BoltAuth) DeleteUser(username []byte) error
- func (b *BoltAuth) GetAllUsers() (users []User, err error)
- func (b *BoltAuth) GetUser(username []byte) (user *User, err error)
- func (b *BoltAuth) GetValue(key []byte) (value []byte, err error)
- func (b *BoltAuth) SetValue(key, value []byte) error
- type User
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 ¶
type BoltAuth ¶
BoltCache - container to implement Cache instance with BoltDB backend for storage
func NewBoltDBAuthBackend ¶
func (*BoltAuth) DeleteUser ¶
func (*BoltAuth) GetAllUsers ¶
GetAllUsers return all users
Click to show internal directories.
Click to hide internal directories.