model

package
v0.0.0-...-45ac6ac Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2016 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateUser

func CreateUser(router.RegisterResponse) (err error)

CreateUser creates a New User

Types

type DB

type DB struct {
	// contains filtered or unexported fields
}

DB struct contains used Database structs

func PQInit

func PQInit(o *DBOptions) (db *DB, err error)

PQInit connects to a Postgres database

type DBOptions

type DBOptions struct {
	Hostname string
	Port     string
	User     string
	Password string
	Database string
}

DBOptions contains login information for the Database

type User

type User struct {
	ID        int
	Name      string
	Email     string
	Password  string
	CreatedAt time.Time
}

User is a model that defines all Userdetails

Jump to

Keyboard shortcuts

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