usersdb

package
v0.0.0-...-ffb5472 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 13, 2017 License: MIT Imports: 6 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL