cookie

package
v0.0.24 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2026 License: MIT Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ClearJWT

func ClearJWT(c *fiber.Ctx)

func ClearRecoverSession

func ClearRecoverSession(c *fiber.Ctx)

func ClearRegisterTicket

func ClearRegisterTicket(c *fiber.Ctx)

func ClearSearchState

func ClearSearchState(c *fiber.Ctx)

func GetCategoryID

func GetCategoryID(c *fiber.Ctx) int

func GetDistanceUnit

func GetDistanceUnit(c *fiber.Ctx) string

func GetJWT

func GetJWT(c *fiber.Ctx) string

func GetRecoverCode

func GetRecoverCode(c *fiber.Ctx) string

func GetRecoverSession

func GetRecoverSession(c *fiber.Ctx) string

func GetRegisterTicket

func GetRegisterTicket(c *fiber.Ctx) string

func GetTimezone

func GetTimezone(c *fiber.Ctx) *time.Location

func IsIntroBannerDismissed

func IsIntroBannerDismissed(c *fiber.Ctx) bool

func ResetDistanceUnit

func ResetDistanceUnit(c *fiber.Ctx)

func SetCategoryID

func SetCategoryID(c *fiber.Ctx, category int)

func SetDistanceUnit

func SetDistanceUnit(c *fiber.Ctx, unit string)

func SetDistanceUnitForUser

func SetDistanceUnitForUser(c *fiber.Ctx, phoneE64 string)

func SetIntroBannerDismissed

func SetIntroBannerDismissed(c *fiber.Ctx)

func SetJWT

func SetJWT(c *fiber.Ctx, token string)

func SetRecoverSession

func SetRecoverSession(c *fiber.Ctx, token, code string)

func SetRegisterTicket

func SetRegisterTicket(c *fiber.Ctx, token string)

func SetSearchState

func SetSearchState(c *fiber.Ctx, state SearchState)

Types

type SearchState

type SearchState struct {
	Q          string                  `json:"q,omitempty"`
	CategoryID int                     `json:"category_id,omitempty"`
	Facets     map[string]facet.Filter `json:"facets,omitempty"`
	Location   string                  `json:"location,omitempty"`
	Within     int                     `json:"within,omitempty"`
	Expanded   bool                    `json:"expanded,omitempty"`
}

SearchState holds persisted search filters and panel expand/collapse. CategoryID 0 means all categories (no category filter).

func GetSearchState

func GetSearchState(c *fiber.Ctx) SearchState

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL