models

package
v0.0.0-...-b99b76b Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: GPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoRecord           = errors.New("models: no matching record found")
	ErrUnique             = errors.New("models: UNIQUE key already exists")
	ErrInvalidCredentials = errors.New("models: invalid credentials")
)

Functions

This section is empty.

Types

type Shorty

type Shorty struct {
	ID      int
	Link    string
	Shorty  string `db:"short_link"`
	Clicks  int
	IP      string
	Created time.Time
}

Shorty holds a db row.

type User

type User struct {
	ID      int
	Email   string
	Pass    string
	Created time.Time
}

User holds a db user entry

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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