Documentation
¶
Index ¶
- Constants
- func FeedToChangelogURL(r *http.Request) string
- func GetFeedURL(r *http.Request) string
- func GetFullURL(r *http.Request) string
- func GetQueryIDs(r *http.Request) (wID string, cID string)
- func LoadChangelog(loader *changelog.Loader, isDBMode bool, r *http.Request, ...) (changelog.LoadedChangelog, error)
- func ParsePagination(q url.Values) (page int, size int)
- func ValidatePassword(hash, plaintext string) error
Constants ¶
View Source
const ( WS_ID_QUERY = "wid" CL_ID_QUERY = "cid" AUTHORIZE_QUERY = "authorize" )
Variables ¶
This section is empty.
Functions ¶
func FeedToChangelogURL ¶
Turns the rss feed request into the changelog url. Done by stripping away the request path (/feed)
func GetFeedURL ¶ added in v0.4.0
Turns the changelog request into the feed url of the changelog
func GetFullURL ¶ added in v0.4.0
Returns the full url of the current request. If request is htmx request (password submit) will use HX-Current-URL
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 ValidatePassword ¶ added in v0.3.0
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.