urlrepo

package
v0.0.0-...-b643d64 Latest Latest
Warning

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

Go to latest
Published: May 12, 2024 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrURLNotFound       = errors.New("url does not exist")
	ErrDuplicateShortURL = errors.New("short url already exists")
)

Functions

This section is empty.

Types

type Repository

type Repository interface {
	Create(ctx context.Context, url url.URL) error
	Update(ctx context.Context, url url.URL) error
	FromShortURL(ctx context.Context, key string) (url.URL, error)
}

Jump to

Keyboard shortcuts

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