ports

package
v0.0.0-...-39d4010 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIPort

type APIPort interface {
	CreateShortUrl(ctx context.Context, url domain.Url) (domain.Url, error)
	GetUrlByShortUrl(ctx context.Context, shortUrl string) (domain.Url, error)
}

type DBPort

type DBPort interface {
	SaveUrl(context.Context, domain.Url) error
	GetUrlByShortUrl(context.Context, string) (domain.Url, error)
}

type KeyGenPort

type KeyGenPort interface {
	GenerateShortUrlKey(ctx context.Context) (string, error)
}

Jump to

Keyboard shortcuts

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