handler

package
v0.6.2 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 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 FeedToChangelogURL

func FeedToChangelogURL(r *http.Request) string

Turns the rss feed request into the changelog url. Done by stripping away the request path (/feed)

func GetFeedURL added in v0.4.0

func GetFeedURL(r *http.Request) string

Turns the changelog request into the feed url of the changelog

func GetFullURL added in v0.4.0

func GetFullURL(r *http.Request) string

Returns the full url of the current request. If request is htmx request (password submit) will use HX-Current-URL

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
admin/views
templ: version: v0.2.771
templ: version: v0.2.771
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