service

package
v0.0.0-...-a78857b Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UrlService

type UrlService struct {
	Repo repository.Repository
}

func (*UrlService) InsertNewAlias

func (s *UrlService) InsertNewAlias(url *model.Url) error

func (*UrlService) MostVisited

func (s *UrlService) MostVisited() ([]model.Url, error)

func (*UrlService) RetrieveLongUrl

func (s *UrlService) RetrieveLongUrl(alias string) (*model.Url, error)

func (*UrlService) UpdateVisitUrl

func (s *UrlService) UpdateVisitUrl(url *model.Url)

Jump to

Keyboard shortcuts

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