handler

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2024 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	WS_ID_QUERY     = "wid"
	CL_ID_QUERY     = "cid"
	AUTHORIZE_QUERY = "authorize"
)

Variables

This section is empty.

Functions

func ChangelogToFeedURL

func ChangelogToFeedURL(r *http.Request) string

func FeedToChangelogURL

func FeedToChangelogURL(r *http.Request) string

Parses the changelog url from a request to a changelogs feed.

func GetQueryIDs added in v0.3.0

func GetQueryIDs(r *http.Request) (wID string, cID string)

func LoadChangelog added in v0.3.0

func LoadChangelog(loader *changelog.Loader, isDBMode bool, r *http.Request, page changelog.Pagination) (*changelog.LoadedChangelog, error)

If in db-mode => load changelog by query ids or host.

If in config mode => load changelog from config.

func ParsePagination added in v0.3.0

func ParsePagination(q url.Values) (page int, size int)

func ValidatePassword added in v0.3.0

func ValidatePassword(hash, plaintext string) error

Types

This section is empty.

Directories

Path Synopsis
web
icons
templ: version: v0.2.771
templ: version: v0.2.771
views
templ: version: v0.2.771
templ: version: v0.2.771
views/layout
templ: version: v0.2.771
templ: version: v0.2.771

Jump to

Keyboard shortcuts

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