Documentation
¶
Index ¶
Constants ¶
View Source
const ( APIV1URLPath = "/api/v1/url" GetURLPath = APIV1URLPath + "/{short}" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API struct {
URLService model.IURLService
}
func NewAPI ¶
func NewAPI(urlService model.IURLService) *API
func (*API) GetURL ¶
func (a *API) GetURL() http.HandlerFunc
func (*API) RegisterRoutes ¶
func (*API) ShortenURL ¶
func (a *API) ShortenURL() http.HandlerFunc
Click to show internal directories.
Click to hide internal directories.