user

package
v0.0.0-...-96c2995 Latest Latest
Warning

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

Go to latest
Published: Sep 9, 2018 License: GPL-3.0 Imports: 3 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Create

func Create(db model.Connection, orgID int64, email, password string) (sql.Result, error)

Types

type User

type User struct {
	ID       int64  `db:"id"`
	OrgID    int64  `db:"org_id"`
	Email    string `db:"email"`
	Password string `db:"password"`
}

func ByEmail

func ByEmail(db model.Connection, email string) (User, bool, error)

func (*User) Save

func (u *User) Save(db model.Connection) (sql.Result, error)

Jump to

Keyboard shortcuts

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