utils

package
v0.0.0-...-f03aceb Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2024 License: MPL-2.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAllParamsExist

func CheckAllParamsExist(r *http.Request, requiredParams []string) bool

func CheckAndCreateSSL

func CheckAndCreateSSL(cp string, kp string) error

CheckAndCreateSSL is a helper to setup self-signed certificates for the administrative interface.

func GetRandomHexString

func GetRandomHexString(length int) string

func GetRandomString

func GetRandomString(length int) string

func GetRelativePath

func GetRelativePath(r *http.Request) (previousPage string)

GetRelativePath returns the relative path of the previous page

func IsRelativeURL

func IsRelativeURL(inputURL string) bool

IsRelativeURL checks if a URL is relative or not

func RedirectBack

func RedirectBack(w http.ResponseWriter, r *http.Request)

RedirectBack redirects to the previous page

Types

This section is empty.

Jump to

Keyboard shortcuts

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