usecase

package
v0.0.0-...-e6db692 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CreateShortenedUrl

type CreateShortenedUrl struct {
	// contains filtered or unexported fields
}

func NewCreateShortenedUrl

func NewCreateShortenedUrl(urlRepo gateway.UrlRepository) *CreateShortenedUrl

func (*CreateShortenedUrl) Execute

func (u *CreateShortenedUrl) Execute(urlInput string) (*entity.Url, error)

type GetShortenedUrl

type GetShortenedUrl struct {
	// contains filtered or unexported fields
}

func NewGetShortenedUrl

func NewGetShortenedUrl(cacheStorage gateway.CacheStorage, urlRepository gateway.UrlRepository) *GetShortenedUrl

func (*GetShortenedUrl) Execute

func (u *GetShortenedUrl) Execute(code string) (*entity.Url, error)

Jump to

Keyboard shortcuts

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