Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Event ¶
type Event struct { ID bson.ObjectId `bson:"_id"` Name string Duration int StartDate int64 EndDate int64 Location Location }
Event struct describes an event
type EventReadWriter ¶
type EventReadWriter interface { AddEvent(Event) ([]byte, error) FindEvent([]byte) (Event, error) FindEventByName(string) (Event, error) FindAllEvents() ([]Event, error) }
EventReadWriter interface spcifies Event behaviors
type Hall ¶
type Hall struct { Name string `json:"name"` Location string `json:"location,omitempty"` Capacity int `json:"capacity"` }
Hall struct describes a Hall
Click to show internal directories.
Click to hide internal directories.