inmemory

package
v0.0.0-...-5164d6d Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Storage

type Storage struct {
	File map[file.ID][]byte
	Lock *sync.RWMutex
}

func NewFileInMemory

func NewFileInMemory() *Storage

func (Storage) GetFileReader

func (s Storage) GetFileReader(_ context.Context, fileID file.ID) (io.ReadCloser, error)

func (Storage) GetStorageType

func (s Storage) GetStorageType() file.StorageType

func (Storage) UploadImageFile

func (s Storage) UploadImageFile(_ context.Context, reader io.Reader) ([]file.ImageSize, error)

Jump to

Keyboard shortcuts

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