model

package
v0.0.0-...-f0e5f8e Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2015 License: ISC Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Borrower

type Borrower struct {
	Id          int            `db:"Id"`
	Surname     string         `db:"Nachname"`
	Forename    sql.NullString `db:"Vorname"`
	Info        sql.NullString `db:"Info"`
	Email       sql.NullString `db:"EMail"`
	PhoneNumber sql.NullString `db:"Telefon"`
}

func (*Borrower) MarshalJSON

func (b *Borrower) MarshalJSON() ([]byte, error)

type Curator

type Curator struct {
	Id           int    `db:"Id, primarykey, autoincrement" json:"id"`
	Name         string `db:"Name,size:50" json:"name"`
	Salt         string `db:"Salt,size:255" json:"salt"`
	PasswordHash string `db:"Hash,size:255" json:"-"`
}

func (Curator) ValidateHash

func (c Curator) ValidateHash(hash string) bool

Jump to

Keyboard shortcuts

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