storage

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

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

func (*FileStorage) Enabled

func (fs *FileStorage) Enabled() bool

func (*FileStorage) Reader

func (fs *FileStorage) Reader() (io.ReadCloser, error)

func (*FileStorage) Writer

func (fs *FileStorage) Writer() (io.WriteCloser, error)

type Storage

type Storage interface {
	Reader() (io.ReadCloser, error)
	Writer() (io.WriteCloser, error)

	Enabled() bool
}

func NewFileStorage

func NewFileStorage(config config.Storage) (Storage, error)

Jump to

Keyboard shortcuts

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