Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddCalendar ¶
AddCalendar creates a new bucket for a tool if it doesn't exist
func DeleteCalendar ¶
DeleteCalendar removes the bucket for a tool if it exists
Types ¶
type Calendar ¶
type Calendar string
A Calendar is how we will split events by tools. there could be a laser calendar or a 3d printer calendar
func FetchCalendars ¶
FetchCalendars shows a list of the current calendars
func (Calendar) DeleteEvent ¶
DeleteEvent removes an evnet from the calendar bucket
func (Calendar) FetchEvent ¶
FetchEvent gets on event form a calendar by id
func (Calendar) FetchEvents ¶
FetchEvents returns all events for a calendar in a slice
type Event ¶
type Event struct { ID int `json:"id,omitempty"` StartTime time.Time `json:"start_time,omitempty"` EndTime time.Time `json:"end_time,omitempty"` Description string `json:"description,omitempty"` Owner string `json:"owner,omitempty"` }
An Event is an allocation of time held by a user. Events go on calendars
Click to show internal directories.
Click to hide internal directories.