Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
RS model.RedisStorage
}
Handler struct should be used as long-living struct by App.
func (*Handler) CreateShortlink ¶
func (h *Handler) CreateShortlink(w http.ResponseWriter, r *http.Request)
CreateShortlink creates and responds the short link
func (*Handler) GetShortlinkInfo ¶
func (h *Handler) GetShortlinkInfo(w http.ResponseWriter, r *http.Request)
GetShortlinkInfo responds the link info
Click to show internal directories.
Click to hide internal directories.