service

package
v0.0.0-...-0698ae9 Latest Latest
Warning

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

Go to latest
Published: Sep 2, 2021 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrUrlInvalid  = errors.New("invalid url")
	ErrUrlNotFound = errors.New("url not found")
)

Functions

This section is empty.

Types

type Service

type Service interface {
	ShortenUrl(ctx context.Context, rawurl string) (proto.Url, error)
	FindUrlByCode(ctx context.Context, code string) (proto.Url, error)
}

func New

func New(dbpool *pgxpool.Pool) Service

Jump to

Keyboard shortcuts

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