audittrail

package
v0.30.4 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockStorage

type MockStorage struct {
	Err error

	SavedFilepath string
	SavedContents []byte
}

func (*MockStorage) Close

func (s *MockStorage) Close() error

func (*MockStorage) GetFile

func (s *MockStorage) GetFile(_ context.Context, _ string) (io.ReadCloser, error)

func (*MockStorage) SaveFile

func (s *MockStorage) SaveFile(_ context.Context, path string, data []byte) error

type Storage

type Storage interface {
	// SaveFile will encrypt and copy the ACH file to the configured file storage.
	SaveFile(ctx context.Context, filepath string, data []byte) error

	GetFile(ctx context.Context, 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)

Jump to

Keyboard shortcuts

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