Documentation ¶ Index ¶ func NewRouter(server rest.Server, store Store) *chi.Mux type Class type Store Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewRouter ¶ func NewRouter(server rest.Server, store Store) *chi.Mux Types ¶ type Class ¶ type Class struct { Id string `json:"id"` Name string `json:"name"` Weekdays []time.Weekday `json:"weekdays"` StartTime time.Time `json:"startTime"` EndTime time.Time `json:"endTime"` } type Store ¶ type Store interface { DeleteClass(id string) (int, error) GetClass(id string) (*Class, error) UpdateClass(id string, name string, weekdays []time.Weekday, startTime time.Time, endTime time.Time) (int, error) CheckPermission(userId string, classId string) (bool, error) } Source Files ¶ View all Source files class.go store.go Click to show internal directories. Click to hide internal directories.