Documentation
¶
Index ¶
Constants ¶
View Source
const EventLimitPerPage = 25
EventLimitPerPage specifies maximum number of events per page.
View Source
const FormDateTimeLayout = "2006-01-02T15:04"
FormDateTimeLayout is the HTML datetime-local input time format.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DeleteEventRequest ¶
DeleteEventRequest is a request to delete an event.
type DeleteUserRequest ¶
DeleteUserRequest is a request to delete a user.
type EditEventForm ¶
type EditEventForm struct {
EventID snowflake.ID `param:"event_id"`
IsDraft bool `query:"draft"`
Title string `form:"title"`
Description string `form:"desc"`
URL string `form:"url"`
StartAt string `form:"start_at"`
Location string `form:"location"`
Latitude float64 `form:"latitude"`
Longitude float64 `form:"longitude"`
TimezoneOffset int `form:"timezone_offset"`
UserTimezone string `form:"user_timezone"`
}
EditEventForm is an edit event form.
func (*EditEventForm) IsDraftOrNew ¶
func (r *EditEventForm) IsDraftOrNew() bool
IsDraftOrNew reports whether the current event is draft or a new event.
type EditStopWordsForm ¶
type EditStopWordsForm struct {
Words string `form:"words"`
}
EditStopWordsForm is the edit stop words form.
type ListEventsRequest ¶
type ListEventsRequest struct {
Offset int64 `form:"offset"`
LastID int64 `form:"last_id"`
Search string `form:"search"`
}
ListEventsRequest is a request to list events.
type RegisterForm ¶
type RegisterForm struct {
Username string `form:"username"`
Password1 string `form:"password1"`
Password2 string `form:"password2"`
}
RegisterForm is the register form.
type RegisterRequest ¶
RegisterRequest is a request to render the register page.
Click to show internal directories.
Click to hide internal directories.