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
Click to show internal directories.
Click to hide internal directories.