Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type UserService ¶
type UserService struct {
// contains filtered or unexported fields
}
UserService implements the rpimonitor.UserManager
func NewUserService ¶
func NewUserService(fileName string) *UserService
NewUserService configures the UsersDB to read user data from the file given.
func (*UserService) Authenticate ¶
func (u *UserService) Authenticate(login, password string) (*rpimonitor.User, error)
Authenticate returns a user if success to authenticate, and nil otherwise.
Click to show internal directories.
Click to hide internal directories.