storage

package
v1.0.1-0...-f24ba58 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2021 License: Unlicense Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(s string) (domain.Storager, error)

Types

type Minio

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

func NewMinio

func NewMinio() (*Minio, error)

func (*Minio) Get

func (m *Minio) Get(ctx context.Context, album uint64, image uint64) (model.File, error)

func (*Minio) Put

func (m *Minio) Put(ctx context.Context, album uint64, image uint64, f model.File) (string, error)

func (*Minio) Remove

func (m *Minio) Remove(ctx context.Context, album uint64, image uint64) error

type Mock

type Mock struct {
}

func NewMock

func NewMock() *Mock

func (*Mock) Get

func (m *Mock) Get(_ context.Context, _ uint64, _ uint64) (model.File, error)

func (*Mock) Put

func (m *Mock) Put(_ context.Context, album uint64, image uint64, f model.File) (string, error)

func (*Mock) Remove

func (m *Mock) Remove(_ context.Context, _ uint64, _ uint64) error

Jump to

Keyboard shortcuts

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