shortener

package
v0.0.0-...-8313ac8 Latest Latest
Warning

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

Go to latest
Published: Jun 30, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrRedirectNotFound = errors.New("redirect Not Found")
	ErrRedirectInvalid  = errors.New("redirect Invalid")
)

Functions

This section is empty.

Types

type RedirectRepository

type RedirectRepository interface {
	Find(code string) (*t.Redirect, error)
	Store(redirect *t.Redirect) error
}

type RedirectService

type RedirectService interface {
	Find(code string) (*t.Redirect, error)
	Store(redirect *t.Redirect) (string, error)
}

func NewRedirectService

func NewRedirectService(repository RedirectRepository, logger log.Logger) RedirectService

Jump to

Keyboard shortcuts

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