v1

package
v0.0.0-...-ff4c1db Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2024 License: GPL-3.0 Imports: 8 Imported by: 0

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 (a *API) RegisterRoutes(r *mux.Router)

func (*API) ShortenURL

func (a *API) ShortenURL() http.HandlerFunc

Jump to

Keyboard shortcuts

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