Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseHandler ¶
type DatabaseHandler interface { AddUser(User) ([]byte, error) AddEvent(Event) ([]byte, error) AddBookingForUser([]byte, Booking) error AddLocation(Location) (Location, error) FindUser(string, string) (User, error) FindBookingsForUser([]byte) ([]Booking, error) FindEvent([]byte) (Event, error) FindEventByName(string) (Event, error) FindAllAvailableEvents() ([]Event, error) FindLocation(string) (Location, error) FindAllLocations() ([]Location, error) }
DatabaseHandler defines presistence behavior
type Event ¶
type Event struct { ID bson.ObjectId `bson:"_id"` Name string `dynamodbav:"EventName"` Duration int StartDate int64 EndDate int64 Location Location }
Event defines an event
type Hall ¶
type Hall struct { Name string `json:"name"` Location string `json:"location,omitempty"` Capacity int `json:"capacity"` }
Hall defines a hall
Click to show internal directories.
Click to hide internal directories.