usecases

package
v0.0.0-...-e754585 Latest Latest
Warning

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

Go to latest
Published: May 29, 2023 License: MIT Imports: 20 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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