app

package
v0.0.0-...-059eb94 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2022 License: MIT Imports: 7 Imported by: 0

README

internal/app

В данной директории будет содержаться имплементация вашего сервиса

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrMethodNotAllowed  = errors.New("method not allowed")
	ErrLinkNotFound      = errors.New("link is not located in the service")
	ErrLinkAlreadyExists = errors.New("link already exists in the service")
	ErrEmptyBodyPostReq  = errors.New("body can't be empty")
	ErrUserHasNoRecords  = errors.New("user has no records")
	ErrInvalidSignature  = errors.New("invalid signature")
	ErrDeletedLink       = errors.New("deleted link")
)

Functions

func FullLink(s string) string
func ShortLink(l []byte) string

Types

type WorkerPool

type WorkerPool struct {
	// contains filtered or unexported fields
}

func NewWorkerPool

func NewWorkerPool(context context.Context, logger *zap.SugaredLogger) WorkerPool

func (WorkerPool) StartDeleteWorker

func (p WorkerPool) StartDeleteWorker(uid string, links []string, function func(context.Context, string, string) error, context context.Context)

Directories

Path Synopsis
Package handlers stores Shortener api handlers.
Package handlers stores Shortener api handlers.

Jump to

Keyboard shortcuts

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