handlers

package
v0.0.0-...-ce44bb8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2019 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Generate

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

Generate handles the creation of shorten url.

func InfoURL

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

InfoURL handles responding information about url.

func RedirectURL

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

RedirectURL redirects client to the target url.

func Status

func Status(version string, platform string, goVersion string, goPlatform string) http.HandlerFunc

Status handles displaying information about server version, go built version and platform.

Types

type HTTPError

type HTTPError struct {
	Code    int    `json:"code"`
	Message string `json:"msg"`
}

Jump to

Keyboard shortcuts

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