models

package
v0.0.0-...-a0af51b Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrNoRecord when no matching record is found
	ErrNoRecord = errors.New("models: no matching record found")
	// ErrInvalidCredentials when credentials are wrong
	ErrInvalidCredentials = errors.New("models: invalid credentials")
	// ErrDuplicateEmail when email already exists
	ErrDuplicateEmail = errors.New("models: duplicate email")
)

Functions

This section is empty.

Types

type Snippet

type Snippet struct {
	ID               int
	Title, Content   string
	Created, Expires time.Time
}

Snippet is a single snip

type User

type User struct {
	ID             int
	Name           string
	Email          string
	HashedPassword []byte
	Created        time.Time
}

User is a single user

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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