Documentation ¶
Index ¶
- type Auth
- func (a *Auth) DeleteUser(name string) error
- func (a *Auth) GenerateCookie() (string, error)
- func (a *Auth) GetUser(username string) (User, error)
- func (a *Auth) GetUsers() []User
- func (a *Auth) InsertUser(user User) error
- func (a *Auth) NewUser(username string, password string, admin bool) (User, error)
- func (a *Auth) UpdateAdmin(username string, admin bool) error
- func (a *Auth) UpdatePassword(user User, newPassword string) (User, error)
- func (a *Auth) ValidateUser(username string, password string) (bool, error)
- type User
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
func (*Auth) DeleteUser ¶
func (*Auth) GenerateCookie ¶
func (*Auth) InsertUser ¶
func (*Auth) UpdatePassword ¶
Click to show internal directories.
Click to hide internal directories.