Documentation
¶
Index ¶
- Constants
- func NewMonzoTransactionExporter(api monzo.Client) *monzoTransactionExporter
- func NewStarlingTransactionExporter(api starling.Client) *starlingTransactionExporter
- func Register(exportType ExportType, constructor ExporterConstructor)
- func Transactions(ctx context.Context, exportType ExportType, opts Options, ...) error
- type ExportType
- type Exporter
- type ExporterConstructor
- type Options
Constants ¶
View Source
const ( ExportTypeMonzo = ExportType("Monzo") Monzo = "Monzo" )
View Source
const ( ExportTypeStarling = ExportType("Starling") Starling = "Starling" )
Variables ¶
This section is empty.
Functions ¶
func Register ¶
func Register(exportType ExportType, constructor ExporterConstructor)
func Transactions ¶
Types ¶
type Exporter ¶
type Exporter interface {
Type() ExportType
MaxDateRange() time.Duration
ExportTransactions(ctx context.Context, opts Options) ([]*domain.Transaction, error) // Export(ctx context.Context, opts Options) ([]T, error)
}
func NewExporter ¶
func NewExporter(exportType ExportType, opts Options) (Exporter, error)
type ExporterConstructor ¶
Click to show internal directories.
Click to hide internal directories.