service

package
v0.0.0-...-906d962 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2025 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrConflict = errors.New("conflict")
View Source
var ErrNotFound = errors.New("not found")
View Source
var ErrUnexpected = errors.New("unexpected")

Functions

This section is empty.

Types

type Service

type Service interface {
	Create(ctx context.Context, url, auth, groupId, userId string, at time.Time) (err error)
	Read(ctx context.Context, url string) (str model.Stream, err error)
	Delete(ctx context.Context, url, groupId, userId string) (err error)
	List(ctx context.Context, limit uint32, filter model.Filter, order model.Order, cursor string) (urls []string, err error)
}

func NewService

func NewService(
	stor storage.Storage,
	replicaIndex uint32,
	handlersLock *sync.Mutex,
	handlerByUrl map[string]handler.Handler,
	handlerFactory handler.Factory,
) Service

func NewServiceLogging

func NewServiceLogging(svc Service, log *slog.Logger) Service

func NewServiceMock

func NewServiceMock() Service

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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