Documentation ¶
Index ¶
- func AddToTimeTable(ctx *iris.Context)
- func CurrentUser(ctx *iris.Context)
- func GetFromTimeTable(ctx *iris.Context)
- func GetPosts(ctx *iris.Context)
- func IsAuthenticated(ctx *iris.Context)
- func Login(ctx *iris.Context)
- func SendInternalServer(err error, ctx *iris.Context)
- func WeatherController(ctx *iris.Context)
- type CalendarAddEvent
- type CalendarEvent
- type TimeTableAddEvent
- type TimeTableEvent
- type TimeTableRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddToTimeTable ¶
func AddToTimeTable(ctx *iris.Context)
AddToTimeTable adds event to the timetable
func GetFromTimeTable ¶
func GetFromTimeTable(ctx *iris.Context)
GetFromTimeTable gets entry from time table
func IsAuthenticated ¶
func IsAuthenticated(ctx *iris.Context)
IsAuthenticated checks whether user is authenticated
func SendInternalServer ¶
func SendInternalServer(err error, ctx *iris.Context)
SendInternalServer sends Internal Server message with error
Types ¶
type CalendarAddEvent ¶
type CalendarAddEvent struct { Start string `json:"start"` End string `json:"end"` Description string `json:"name"` }
CalendarAddEvent is the event received from calendar
type CalendarEvent ¶
type CalendarEvent struct { ID string `json:"id"` Title string `json:"title"` Start string `json:"start"` End string `json:"end"` }
CalendarEvent is the format required by FullCalendar
type TimeTableAddEvent ¶
type TimeTableAddEvent struct { Username string `json:"username"` Event CalendarAddEvent `json:"event"` }
TimeTableAddEvent is the event format required for backend
type TimeTableEvent ¶
type TimeTableEvent struct { ID string `json:"id"` Description string `json:"description"` End string `json:"end"` Start string `json:"start"` }
TimeTableEvent is the response from the server
type TimeTableRequest ¶
type TimeTableRequest struct { Username string `json:"username"` Start string `json:"start"` End string `json:"end"` }
TimeTableRequest is the request format for the server
Click to show internal directories.
Click to hide internal directories.