user

package
Version: v0.0.0-...-a7a9960 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2015 License: GPL-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService(sqler db.SQLer) Service

func (Service) FindAll

func (s Service) FindAll() ([]User, error)

func (Service) FindByEmail

func (s Service) FindByEmail(email string) (User, error)

func (Service) FindById

func (s Service) FindById(id int) (User, error)

func (Service) Save

func (s Service) Save(ip net.IP, agent int, u *User) error

func (Service) SystemUser

func (s Service) SystemUser() (User, error)

func (Service) VerifyPassword

func (s Service) VerifyPassword(email mail.Address, password string) (bool, error)

type User

type User struct {
	Id       int
	Name     types.Name
	Email    types.Email
	Password string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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