storage

package
v0.0.0-...-221c55c Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2022 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type AnnouncementStorage

type AnnouncementStorage interface {
	Create(ctx context.Context, announcement *model.Announcement) error
	GetAll(ctx context.Context, filter model.Filter) ([]*model.Announcement, error)
	Delete(ctx context.Context, id string) error
	InTx(ctx context.Context, txFn func(s AnnouncementStorage) error) error
}

type FileStorage

type FileStorage interface {
	Put(ctx context.Context, key, contentType string, data io.Reader) error
	Get(ctx context.Context, key string) (data io.ReadCloser, contentType string, err error)
	Delete(ctx context.Context, key string) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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