filedrive

package
v0.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ACHDriver added in v0.16.0

type ACHDriver struct {
	core.Driver
	// contains filtered or unexported fields
}

ACHDriver wraps the goftp driver to add additional logic and error checking.

func NewACHDriver added in v0.16.0

func NewACHDriver(logger log.Logger, validateOpts *ach.ValidateOpts, driver core.Driver) *ACHDriver

func (*ACHDriver) PutFile added in v0.16.0

func (d *ACHDriver) PutFile(path string, r io.Reader, appendData bool) (int64, error)

PutFile overrides the existing method to prevent erroneous ACH files from being uploaded.

type Factory

type Factory struct {
	DriverFactory core.DriverFactory

	Logger       log.Logger
	ValidateOpts *ach.ValidateOpts
}

func (*Factory) NewDriver

func (f *Factory) NewDriver() (core.Driver, error)

type MTimeFilter

type MTimeFilter struct {
	core.Driver
}

func (MTimeFilter) ListDir

func (mtf MTimeFilter) ListDir(path string, callback func(core.FileInfo) error) error

Jump to

Keyboard shortcuts

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