local

package
v0.0.0-...-d2ea057 Latest Latest
Warning

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

Go to latest
Published: Dec 16, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FormatFileSize

func FormatFileSize(sizeBytes int64) string

Types

type LocalStorage

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

func NewLocalStorage

func NewLocalStorage(cfg *config.Config) (*LocalStorage, error)

func (*LocalStorage) GetFileMetadata

func (l *LocalStorage) GetFileMetadata(ctx context.Context, key string) (*model.FileData, error)

func (*LocalStorage) UploadFile

func (l *LocalStorage) UploadFile(ctx context.Context, key string, body io.Reader) error

Jump to

Keyboard shortcuts

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