event

package
v0.0.0-...-754593e Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2014 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func EventAddHandler

func EventAddHandler(w http.ResponseWriter, req *http.Request)

Add Event from Website (incomplete)

func EventGrabHandler

func EventGrabHandler(r render.Render)

func EventImportHandler

func EventImportHandler(res http.ResponseWriter, req *http.Request)

func EventListHandler

func EventListHandler(r render.Render)

func EventNextHandler

func EventNextHandler(r render.Render)

func EventPastHandler

func EventPastHandler(r render.Render)

func OrganiseHandler

func OrganiseHandler(r render.Render)

func RegisterEventAttendeeHandler

func RegisterEventAttendeeHandler(a Attendee, mdb *mgo.Database, res http.ResponseWriter, req *http.Request)

func ShowEventAttendees

func ShowEventAttendees(params martini.Params, mdb *mgo.Database, r render.Render)

Types

type Attendee

type Attendee struct {
	ID        bson.ObjectId `bson:"_id,omitempty"`
	Eid       string
	Email     string
	Fbuid     string
	FirstName string
	LastName  string
	Timestamp time.Time
}

func NewAttendee

func NewAttendee() *Attendee

func (*Attendee) Collection

func (a *Attendee) Collection() string

func (*Attendee) Indexes

func (a *Attendee) Indexes() [][]string

func (*Attendee) PreSave

func (a *Attendee) PreSave()

func (*Attendee) Unique

func (a *Attendee) Unique() bson.M

type Event

type Event struct {
	ID          bson.ObjectId `bson:"_id,omitempty"`
	Eid         string
	Slug        string
	Name        string
	Description string
	Timestamp   time.Time
	Speaker     int
	Published   bool

	Data struct {
		Id    string
		Owner struct {
			Name string
			Id   string
		}
		Name        string
		Description string
		StartTime   time.Time `bson:"start_time" json:"start_time"`
		EndTime     time.Time `bson:"end_time" json:"end_time"`
		TimeZone    string
		IsDateOnly  bool
		Location    string
		Venue       struct {
			Latitude  float64
			Longitude float64
			City      string
			Country   string
			Id        string
			Street    string
			Zip       string
		}
		UpdatedTime time.Time `bson:"updated_time" json:"updated_time"`
	}
}

func NewEvent

func NewEvent() *Event

func (*Event) Collection

func (e *Event) Collection() string

func (*Event) Indexes

func (e *Event) Indexes() [][]string

func (*Event) PreSave

func (e *Event) PreSave()

func (*Event) Unique

func (e *Event) Unique() bson.M

Jump to

Keyboard shortcuts

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