users

package
v0.0.0-...-bbf1054 Latest Latest
Warning

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

Go to latest
Published: Jun 19, 2015 License: ISC Imports: 4 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("no record found")
	ErrInternal = errors.New("internal error")
)

Functions

func AllDomains

func AllDomains() (domains []string, err error)

AllDomains retrieves all active domains that have mailboxes.

func CheckPassword

func CheckPassword(mailAddr helpers.MailAddress, pw []byte) bool

func HashPassword

func HashPassword(input []byte) ([]byte, error)

func New

func New(mailAddr helpers.MailAddress, password string) error

func Prepare

func Prepare(dbm *gorp.DbMap)

Types

type User

type User struct {
	ID           uint
	Domain       string
	Mail         string
	PasswordHash []byte
}

Jump to

Keyboard shortcuts

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