storage

package
v0.0.0-...-af69dfc Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: AGPL-3.0 Imports: 5 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 error")

Functions

This section is empty.

Types

type Storage

type Storage interface {
	io.Closer
	Create(ctx context.Context, url string, str model.Stream) (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 NewMockStorage

func NewMockStorage() Storage

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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