Documentation
¶
Index ¶
- Variables
- type Services
- type ShortenerService
- func (s *ShortenerService) CreateURLHandler(c echo.Context) error
- func (s *ShortenerService) DeleteURLHandler(c echo.Context) error
- func (s *ShortenerService) GetListDataHandler(c echo.Context) error
- func (s *ShortenerService) IndexHandler(c echo.Context) error
- func (s *ShortenerService) RedirectHandler(c echo.Context) error
- func (s *ShortenerService) UpdateURLHandler(c echo.Context) error
Constants ¶
This section is empty.
Variables ¶
View Source
var NotFound = struct { Message string `json:"message"` }{ Message: "404 Not Found!", }
Functions ¶
This section is empty.
Types ¶
type Services ¶
type Services struct {
*ShortenerService
}
func GetServices ¶
func GetServices(app *app.UrlShortenerApp) *Services
type ShortenerService ¶
type ShortenerService struct {
// contains filtered or unexported fields
}
func NewShortenerService ¶
func NewShortenerService(app *app.UrlShortenerApp) *ShortenerService
func (*ShortenerService) CreateURLHandler ¶
func (s *ShortenerService) CreateURLHandler(c echo.Context) error
func (*ShortenerService) DeleteURLHandler ¶
func (s *ShortenerService) DeleteURLHandler(c echo.Context) error
func (*ShortenerService) GetListDataHandler ¶
func (s *ShortenerService) GetListDataHandler(c echo.Context) error
func (*ShortenerService) IndexHandler ¶
func (s *ShortenerService) IndexHandler(c echo.Context) error
func (*ShortenerService) RedirectHandler ¶
func (s *ShortenerService) RedirectHandler(c echo.Context) error
func (*ShortenerService) UpdateURLHandler ¶
func (s *ShortenerService) UpdateURLHandler(c echo.Context) error
Click to show internal directories.
Click to hide internal directories.