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