Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrUserNotFound = errors.New("user not found")
)
Functions ¶
This section is empty.
Types ¶
type Postgres ¶
type Postgres struct {
// contains filtered or unexported fields
}
func NewPostgres ¶
type StaticUserEntry ¶
type StaticUserEntry struct {
// contains filtered or unexported fields
}
func (*StaticUserEntry) Password ¶
func (u *StaticUserEntry) Password() string
func (*StaticUserEntry) Token ¶
func (u *StaticUserEntry) Token() string
func (*StaticUserEntry) Username ¶
func (u *StaticUserEntry) Username() string
type StaticUsersDatabase ¶
type StaticUsersDatabase struct {
// contains filtered or unexported fields
}
func NewStaticUsersDatabase ¶
func NewStaticUsersDatabase(configuredUsers []*config.User) *StaticUsersDatabase
func (*StaticUsersDatabase) GetByToken ¶
func (d *StaticUsersDatabase) GetByToken(token string) (User, error)
func (*StaticUsersDatabase) GetByUsername ¶
func (d *StaticUsersDatabase) GetByUsername(username string) (User, error)
Click to show internal directories.
Click to hide internal directories.