wire

package
v0.0.0-...-e49eac2 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2015 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

these are data structures EXCHANGED between client and server and thus are compiled on both sides of the wire. thus must match exactly to the tables created in migrate/migrate.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Comment

type Comment struct {
	Id       int64  `qbs:"pk"`
	MovieId  int64  `qbs:"fk:Movie"`
	UserUdid string `qbs:"fk:User"`
	Movie    *Movie
	User     *UserRecord
	Comment  string
	Updated  time.Time
}

type Hate

type Hate struct {
	Id       int64  `qbs:"pk"`
	MovieId  int64  `qbs:"fk:Movie"`
	UserUdid string `qbs:"fk:User"`
	Movie    *Movie
	User     *UserRecord
}

type IMDBDetail

type IMDBDetail struct {
	Title      string
	Year       string
	Rated      string
	Released   string
	Runtime    string
	Genre      string
	Director   string
	Writer     string
	Actors     string
	Plot       string
	Language   string
	Country    string
	Awards     string
	Poster     string
	Metascore  string
	ImdbRating string
	ImdbVotes  string
	ImdbID     string
	Type       string
	Response   string
}

type Love

type Love struct {
	Id       int64 `qbs:"pk"`
	MovieId  int64 `qbs:"fk:Movie"`
	UserUdid string
	Movie    *Movie
	User     *UserRecord
}

type Movie

type Movie struct {
	Id          int64 `qbs:"pk"`
	ImdbId      string
	NominatedBy string `qbs:"fk:Nominator"`
	Nominator   *UserRecord
}

type SessionData

type SessionData struct {
	LoggedInUser *UserRecord
}

type UserRecord

type UserRecord struct {
	UserUdid                 string `qbs:"pk"`
	FirstName                string
	LastName                 string
	EmailAddr                string
	Password                 string
	Disabled, Admin, Manager bool
}

Jump to

Keyboard shortcuts

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