Documentation ¶
Index ¶
- type Backend
- type FileSystemBackend
- func (fs *FileSystemBackend) GetObject(objectName string) ([]byte, error)
- func (fs *FileSystemBackend) IsExists(objectName string) bool
- func (fs *FileSystemBackend) Proxy(c echo.Context, objectName string) error
- func (fs *FileSystemBackend) PutObject(objectName string, data []byte) (string, error)
- func (fs *FileSystemBackend) Size(objectName string) int64
- type Storage
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileSystemBackend ¶
type FileSystemBackend struct {
// contains filtered or unexported fields
}
func NewFileSystemBackend ¶
func NewFileSystemBackend(dir string) *FileSystemBackend
func (*FileSystemBackend) GetObject ¶
func (fs *FileSystemBackend) GetObject(objectName string) ([]byte, error)
func (*FileSystemBackend) IsExists ¶
func (fs *FileSystemBackend) IsExists(objectName string) bool
func (*FileSystemBackend) Proxy ¶
func (fs *FileSystemBackend) Proxy(c echo.Context, objectName string) error
func (*FileSystemBackend) PutObject ¶
func (fs *FileSystemBackend) PutObject(objectName string, data []byte) (string, error)
func (*FileSystemBackend) Size ¶
func (fs *FileSystemBackend) Size(objectName string) int64
type Storage ¶
type Storage interface { GetFile(directory string, filename string) (*entity.ProcessingFile, error) ReadFileBytes(file *entity.ProcessingFile, directories ...string) error StoreFile(file *entity.ProcessingFile, directories ...string) error Proxy(c echo.Context, objectName string) error }
func NewStorage ¶
Click to show internal directories.
Click to hide internal directories.