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 OldDirProvider ¶ added in v0.3.49
type OldDirProvider struct {
// contains filtered or unexported fields
}
OldDirProvider returns old directories to remove from a system
func NewOldDirProvider ¶ added in v0.3.49
func NewOldDirProvider(expireDuration time.Duration, dir string) (*OldDirProvider, error)
NewOldDirProvider creates OldDirProvider instances
func (*OldDirProvider) GetExpired ¶ added in v0.3.49
func (p *OldDirProvider) GetExpired() ([]string, error)
GetExpired return expired file nams
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.