local

package
v0.0.0-...-cf45389 Latest Latest
Warning

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

Go to latest
Published: May 18, 2021 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileLocal

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

func NewFileLocal

func NewFileLocal(basePath string, opts ...FileLocalOption) (*FileLocal, error)

func (*FileLocal) OpenFile

func (fl *FileLocal) OpenFile(id uuid.UUID) (storage.OpenFile, error)

func (*FileLocal) OpenTempFile

func (fl *FileLocal) OpenTempFile(handleID uuid.UUID) (storage.OpenFile, error)

func (*FileLocal) ReadFile

func (fl *FileLocal) ReadFile(filePath string) (io.ReadCloser, error)

func (*FileLocal) ReadFileFromOffset

func (fl *FileLocal) ReadFileFromOffset(
	filePath string,
	offset uint64,
) (io.ReadCloser, error)

func (*FileLocal) WriteFile

func (fl *FileLocal) WriteFile(filePath string, r io.Reader) (string, uint64, error)

type FileLocalOption

type FileLocalOption func(*FileLocal)

func WithLogger

func WithLogger(logger logging.Logger) FileLocalOption

Jump to

Keyboard shortcuts

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