usecase

package
v0.0.0-...-4e8521e Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(
	database repository.Database, txManager transaction.TxManager, urlRepo repository.URLRepository,
	logger logger.Logger,
) *usecase

Types

type Usecase

type Usecase interface {
	Health(ctx context.Context) error

	SearchOriginalURL(ctx context.Context, shortURL string) (string, error)
	GenerateURL(ctx context.Context, originalURL string) (string, error)
}

Jump to

Keyboard shortcuts

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