service

package
v0.0.0-...-a6ef0dd Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 9, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL