filestorage

package
v0.0.0-...-9c81215 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStore

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

func New

func New(path string) (fileStore *FileStore, err error)

func (*FileStore) DeleteFile

func (s *FileStore) DeleteFile(ctx context.Context, fName string)

func (*FileStore) Purge

func (s *FileStore) Purge(ctx context.Context) error

func (*FileStore) ReadFile

func (s *FileStore) ReadFile(ctx context.Context, fName string, w io.Writer) error

func (*FileStore) SaveFile

func (s *FileStore) SaveFile(ctx context.Context, fName string, reader io.Reader) error

func (*FileStore) Volume

func (s *FileStore) Volume(ctx context.Context) (int64, error)

Jump to

Keyboard shortcuts

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