api

package
v0.0.0-...-43c1e5f Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedirectHandler

type RedirectHandler interface {
	Index(http.ResponseWriter, *http.Request)
	Get(http.ResponseWriter, *http.Request)
	Post(http.ResponseWriter, *http.Request)
}

RedirectHandler defines the contract for a handler on the HTTP layer.

func NewHandler

func NewHandler(redirectService shortener.RedirectService) RedirectHandler

NewHandler creates and returns a new handler.

Jump to

Keyboard shortcuts

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