models

package
v0.0.0-...-1b62c67 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2017 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Event

type Event struct {
	Model
	VenueID    bson.ObjectId `json:"venueId" form:"venueId" binding:"required"`
	StartTime  time.Time     `json:"startTime" form:"startTime"`
	EndTime    time.Time     `json:"endTime" form:"endTime"`
	FacebookID string        `json:"facebookId" form:"facebookId"`
}

Event defines a social gathering of any sort.

type Model

type Model struct {
	ID        bson.ObjectId `json:"id" form:"id" bson:"_id,omitempty"`
	CreatedOn time.Time     `json:"createdOn" form:"createdOn"`
	UpdatedOn time.Time     `json:"updatedOn" form:"updatedOn"`
	DeletedOn *time.Time    `json:"deletedOn" form:"deletedOn"`
}

Model represents a base database type

type ModelFilters

type ModelFilters struct {
	ID        *bson.ObjectId `json:"id,omitempty" form:"id,omitempty" bson:"_id,omitempty"`
	CreatedOn *time.Time     `json:"createdOn,omitempty" form:"createdOn,omitempty"`
	UpdatedOn *time.Time     `json:"updatedOn,omitempty" form:"updatedOn,omitempty"`
	DeletedOn *time.Time     `json:"deletedOn,omitempty" form:"deletedOn,omitempty"`
}

ModelFilters contains all the possible filters for a Model

type User

type User struct {
	Model
	Email    string `json:"email" form:"email" binding:"required"`
	Password string `json:"password" form:"password" binding:"required"`
}

User contains all user-related data.

type Venue

type Venue struct {
	Model
	GoogleID     string `json:"googleId" form:"googleId"`
	FoursquareID string `json:"foursquareId" form:"foursquareId"`
	YelpID       string `json:"yelpId" form:"yelpId"`
}

Venue represents a place where events can occur.

Jump to

Keyboard shortcuts

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