Documentation ¶
Index ¶
- type Auth
- func (d *Auth) Authenticator(username string, password string, c *gin.Context) (interface{}, bool)
- func (d *Auth) CreateUser(login string, passwordHash string) error
- func (d *Auth) DeleteUser(id int) error
- func (d *Auth) GetUser(login string, passwordHash string) (*UserAuth, bool)
- func (d *Auth) GetUserByLogin(login string) (*User, error)
- func (d *Auth) ListUsers() ([]User, error)
- func (d *Auth) UpdateUser(id int, passwordHash string) error
- type User
- type UserAuth
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Auth ¶
type Auth struct {
// contains filtered or unexported fields
}
func (*Auth) Authenticator ¶
func (*Auth) DeleteUser ¶
Click to show internal directories.
Click to hide internal directories.