Documentation
¶
Index ¶
- func ClearJWT(c *fiber.Ctx)
- func ClearRecoverSession(c *fiber.Ctx)
- func ClearRegisterTicket(c *fiber.Ctx)
- func ClearSearchState(c *fiber.Ctx)
- func GetCategoryID(c *fiber.Ctx) int
- func GetDistanceUnit(c *fiber.Ctx) string
- func GetJWT(c *fiber.Ctx) string
- func GetRecoverCode(c *fiber.Ctx) string
- func GetRecoverSession(c *fiber.Ctx) string
- func GetRegisterTicket(c *fiber.Ctx) string
- func GetTimezone(c *fiber.Ctx) *time.Location
- func GetView(c *fiber.Ctx) string
- func IsIntroBannerDismissed(c *fiber.Ctx) bool
- func ResetDistanceUnit(c *fiber.Ctx)
- func SetCategoryID(c *fiber.Ctx, category int)
- func SetDistanceUnit(c *fiber.Ctx, unit string)
- func SetDistanceUnitForUser(c *fiber.Ctx, phoneE64 string)
- func SetIntroBannerDismissed(c *fiber.Ctx)
- func SetJWT(c *fiber.Ctx, token string)
- func SetRecoverSession(c *fiber.Ctx, token, code string)
- func SetRegisterTicket(c *fiber.Ctx, token string)
- func SetSearchState(c *fiber.Ctx, state SearchState)
- func SetView(c *fiber.Ctx, view int)
- type SearchState
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClearRecoverSession ¶
func ClearRegisterTicket ¶
func ClearSearchState ¶
func GetCategoryID ¶
func GetDistanceUnit ¶
func GetRecoverCode ¶
func GetRecoverSession ¶
func GetRegisterTicket ¶
func IsIntroBannerDismissed ¶
func ResetDistanceUnit ¶
func SetCategoryID ¶
func SetDistanceUnit ¶
func SetDistanceUnitForUser ¶
func SetIntroBannerDismissed ¶
func SetRecoverSession ¶
func SetRegisterTicket ¶
func SetSearchState ¶
func SetSearchState(c *fiber.Ctx, state SearchState)
Types ¶
type SearchState ¶
type SearchState struct {
Q string `json:"q,omitempty"`
Facets map[string]facet.Filter `json:"facets,omitempty"`
Location string `json:"location,omitempty"`
Within int `json:"within,omitempty"`
Expanded bool `json:"expanded,omitempty"`
SearchOpen bool `json:"search_open,omitempty"`
}
SearchState holds persisted search filters and panel expand/collapse.
func GetSearchState ¶
func GetSearchState(c *fiber.Ctx) SearchState
Click to show internal directories.
Click to hide internal directories.