service

package
v0.0.0-...-c175a76 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2023 License: MIT 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 interface {
	GenerateShortURL(longURL string) (shortURL string, err error)
	GetLongURL(shortURL string) (string, error)
}

URLService - interface for working with url data

func NewURLService

func NewURLService(idGenerator generator.Snowflake, cache cache.LRUCache, rep repositories.URLDataService) URLService

NewURLService - create new urlService instance and returning UrlService interface for interact with it

Jump to

Keyboard shortcuts

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