Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FileUseCases ¶
type FileUseCases interface { // ReadFile reads the file from the given path or S3 bucket. ReadAndProcessFile(txFile fileEntity.TxFile, isS3 bool) (err error) // CheckFile checks if is a valid structured file. CheckFile(txFile fileEntity.TxFile, isS3 bool) (err error) // ProcessFile processes the file. ProcessFile(txFile fileEntity.TxFile, file *os.File) (err error) // ProcessMultipartFile processes the file. ProcessMultipartFile(txFile fileEntity.TxFile, file multipart.File) (err error) }
FileUseCases interface defines the file use cases.
func NewFileUseCases ¶
func NewFileUseCases( userUseCases userUsecases.UserUseCases, accountUseCases acUsecases.AccountUseCases, transactionUseCases txUsecases.TransactionUseCases, ) (useCases FileUseCases, err error)
NewFileUseCases returns a new localFileUseCases instance.
Click to show internal directories.
Click to hide internal directories.