Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalLoader ¶
type LocalLoader struct {
// StoragePath is the main folder to save into
Path string
OpenFunc OpenFileReadFunc
}
LocalLoader loads file on local disk
func NewLocalLoader ¶
func NewLocalLoader(path string) (*LocalLoader, error)
NewLocalLoader creates LocalLoader instance
type LocalSaver ¶
type LocalSaver struct {
// StoragePath is the main folder to save into
StoragePath string
OpenFileFunc OpenFileFunc
}
LocalSaver saves file on local disk
func NewLocalSaver ¶
func NewLocalSaver(storagePath string) (*LocalSaver, error)
NewLocalSaver creates LocalSaver instance
type OpenFileFunc ¶
type OpenFileFunc func(fileName string) (WriterCloser, error)
OpenFileFunc declares function to open file by name and return Writer
type OpenFileReadFunc ¶
OpenFileReadFunc declares function to open file by name and return Reader
type WriterCloser ¶
WriterCloser keeps Writer interface and close function
Click to show internal directories.
Click to hide internal directories.