Documentation
¶
Index ¶
- Constants
- func ChangelogToFeedURL(r *http.Request) string
- func FeedToChangelogURL(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 ChangelogToFeedURL ¶
func FeedToChangelogURL ¶
Parses the changelog url from a request to a changelogs feed.
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.