local

package
v0.0.0-...-a6f1803 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2025 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

FormatFileSize formatea el tamaño del archivo en una representación legible.

Types

type LocalStorage

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

func NewLocalStorage

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

func (*LocalStorage) GetFileContent

func (l *LocalStorage) GetFileContent(ctx context.Context, path string, key string) (io.ReadCloser, error)

GetFileContent obtiene el contenido del archivo con la clave especificada.

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