controllers

package
v0.0.0-...-88cd674 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2019 License: GPL-3.0 Imports: 12 Imported by: 1

Documentation

Index

Constants

View Source
const Base16Alphabet = "0123456789abcdef"
View Source
const Base64Alphabet = "123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"

Variables

This section is empty.

Functions

func BaseDecode

func BaseDecode(encodedStr string, alph string) int

func BaseEncode

func BaseEncode(id int, alph string) string

func GetURL

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

func Sha256Checker

func Sha256Checker(hash string) error

func StandardizeURL

func StandardizeURL(rawLink string) (string, error)

func TraceURL

func TraceURL(link string) (string, error)

func UserErrorHandle

func UserErrorHandle(errorText string, errorCode int, nw http.ResponseWriter)

Types

This section is empty.

Jump to

Keyboard shortcuts

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