Documentation ¶
Index ¶
- Variables
- type Options
- type Storage
- func (db *Storage) AddUser(user string, key string, level UserLevel) error
- func (db *Storage) Authenticate(username string, key string, claims jwt.StandardClaims) (UserClaims, string, error)
- func (db *Storage) CountUsers() int
- func (db *Storage) DeleteUser(user string) error
- func (db *Storage) GetUser(username string) (User, bool)
- func (db *Storage) Verify(token string) (*UserClaims, error)
- type User
- type UserClaims
- type UserLevel
- type UserList
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) Authenticate ¶
func (*Storage) CountUsers ¶
func (*Storage) DeleteUser ¶
type UserClaims ¶
Click to show internal directories.
Click to hide internal directories.