media

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 2023 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FileStorage

type FileStorage interface {
	Store(id string, r io.Reader) error
	Open(id string) (io.ReadCloser, error)
	List() ([]string, error)
}

type LocalFileStorage

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

func NewLocalDiskStorage

func NewLocalDiskStorage(dirPath string) *LocalFileStorage

func (*LocalFileStorage) List

func (fs *LocalFileStorage) List() ([]string, error)

func (*LocalFileStorage) Open

func (fs *LocalFileStorage) Open(id string) (io.ReadCloser, error)

func (*LocalFileStorage) Store

func (ms *LocalFileStorage) Store(id string, r io.Reader) error

Jump to

Keyboard shortcuts

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