api

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 31, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetupResponse

func SetupResponse(writer http.ResponseWriter, contentType string, body []byte, statusCode int)

Types

type ShortLinkHandler

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

func NewHandler

func NewHandler(shortLinkService shortener.ShortLinkService) ShortLinkHandler

Jump to

Keyboard shortcuts

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