Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalFileSaver ¶
type LocalFileSaver struct { // StoragePath is the main folder to save into StoragePath string OpenFileFunc OpenFileFunc }
LocalFileSaver saves file on local disk
func NewLocalFileSaver ¶
func NewLocalFileSaver(storagePath string) (*LocalFileSaver, error)
NewLocalFileSaver creates LocalFileSaver instance
func (*LocalFileSaver) HealthyFunc ¶
func (fs *LocalFileSaver) HealthyFunc(sizeInMb uint64) func() error
HealthyFunc returns func for health check
type OpenFileFunc ¶
type OpenFileFunc func(fileName string) (WriterCloser, error)
OpenFileFunc declares function to open file by name and return Writer
type WriterCloser ¶
WriterCloser keeps Writer interface and close function
Click to show internal directories.
Click to hide internal directories.