models

package
v0.0.0-...-0384813 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2017 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Page

type Page struct {
	ID       int64
	Hostname string
	Path     string
	Title    string
}

type Pageview

type Pageview struct {
	ID              int64
	PageID          int64
	VisitorID       int64
	ReferrerKeyword string
	ReferrerUrl     string
	Timestamp       string
}

type User

type User struct {
	ID             int64
	Email          string
	Password       string `json:"-"`
	HashedPassword string `json:"-"`
}

func (*User) Save

func (u *User) Save(conn *sql.DB) error

type Visitor

type Visitor struct {
	ID               int64
	Key              string
	BrowserName      string
	BrowserVersion   string
	BrowserLanguage  string
	Country          string
	DeviceOS         string
	IpAddress        string
	ScreenResolution string
}

Jump to

Keyboard shortcuts

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