Documentation ¶
Index ¶
- type Ban
- type Database
- func (db *Database) AddBan(name string) error
- func (db *Database) AddUser(name string, pubkey string, override bool) error
- func (db *Database) DelBan(name string) error
- func (db *Database) DelUser(name string) error
- func (db *Database) GetPublicKey(name string) (pubkey string, err error)
- func (db *Database) IsBanned(name string) (bool, error)
- func (db *Database) UpdateUserLastAuthed(name string) error
- type User
- type UserExistsError
- type UserNotFoundError
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Database ¶
func (*Database) GetPublicKey ¶
func (*Database) UpdateUserLastAuthed ¶
type UserExistsError ¶
type UserExistsError User
func (UserExistsError) Error ¶
func (e UserExistsError) Error() string
type UserNotFoundError ¶
type UserNotFoundError string
func (UserNotFoundError) Error ¶
func (e UserNotFoundError) Error() string
Click to show internal directories.
Click to hide internal directories.