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
Click to show internal directories.
Click to hide internal directories.