httpHandlers

package
v0.0.0-...-80d61b6 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Error503

func Error503(w http.ResponseWriter, err error)

func FaviconHandler

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

func InternalServerError

func InternalServerError(w http.ResponseWriter, err error)

Types

type CreateData

type CreateData struct {
	ShortedURL string
	MainURL    string
	Error      error
}

type HandlerCreate

type HandlerCreate struct {
	DB db.DB
}

func (*HandlerCreate) UrlCreate

func (hl *HandlerCreate) UrlCreate(w http.ResponseWriter, r *http.Request)

type HandlerForward

type HandlerForward struct {
	DB db.DB
}

func (*HandlerForward) UrlForward

func (hl *HandlerForward) UrlForward(w http.ResponseWriter, r *http.Request)

Jump to

Keyboard shortcuts

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