Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockStorage ¶
func (*MockStorage) Close ¶
func (s *MockStorage) Close() error
func (*MockStorage) GetFile ¶
func (s *MockStorage) GetFile(filepath string) (io.ReadCloser, error)
type Storage ¶
type Storage interface { // SaveFile will encrypt and copy the ACH file to the configured file storage. SaveFile(hostname, filename string, file *ach.File) error GetFile(filepath string) (io.ReadCloser, error) Close() error }
Storage is an interface for saving and encrypting ACH files for records retention. This is often a requirement of agreements.
File retention after upload is not part of this storage.
func NewStorage ¶
func NewStorage(cfg *service.AuditTrail) (Storage, error)
Click to show internal directories.
Click to hide internal directories.