Versions in this module Expand all Collapse all v1 v1.0.0 Oct 10, 2026 Changes in this version + const StatusCompleted + const StatusFailed + const StatusInProgress + const StatusStarted + type Config struct + BatchSize int + MaxWorkers int + ProgressInterval int + type FetchTransactions func(context.Context, string, int, int64) ([]*model.Transaction, error) + type ProcessTransaction func(context.Context, *model.Transaction) error + type Repository interface + DeleteMatchingRule func(ctx context.Context, id string) error + FetchAndGroupExternalTransactions func(ctx context.Context, uploadID string, groupCriteria string, batchSize int, ...) (map[string][]*model.Transaction, error) + GetExternalTransactionsPaginated func(ctx context.Context, uploadID string, batchSize int, offset int64) ([]*model.ExternalTransaction, error) + GetMatchingRule func(ctx context.Context, id string) (*model.MatchingRule, error) + GetMatchingRules func(ctx context.Context) ([]*model.MatchingRule, error) + GetReconciliation func(ctx context.Context, id string) (*model.Reconciliation, error) + GetTransactionsByCriteria func(ctx context.Context, minAmount, maxAmount *float64, currency *string, ...) ([]*model.Transaction, error) + GetTransactionsPaginated func(ctx context.Context, id string, batchSize int, offset int64) ([]*model.Transaction, error) + GroupTransactions func(ctx context.Context, groupCriteria string, batchSize int, offset int64) (map[string][]*model.Transaction, error) + LoadReconciliationProgress func(ctx context.Context, reconciliationID string) (model.ReconciliationProgress, error) + RecordExternalTransaction func(ctx context.Context, tx *model.ExternalTransaction, reconciliationID string) error + RecordMatches func(ctx context.Context, reconciliationID string, matches []model.Match) error + RecordMatchingRule func(ctx context.Context, rule *model.MatchingRule) error + RecordReconciliation func(ctx context.Context, rec *model.Reconciliation) error + RecordUnmatched func(ctx context.Context, reconciliationID string, results []string) error + SaveReconciliationProgress func(ctx context.Context, reconciliationID string, ...) error + UpdateMatchingRule func(ctx context.Context, rule *model.MatchingRule) error + UpdateReconciliationStatus func(ctx context.Context, id string, status string, ...) error + type RunBatches func(context.Context, string, *big.Int, int, FetchTransactions, ProcessTransaction) error + type Service struct + func NewService(repository Repository, configuration func() Config, runBatches RunBatches, ...) *Service + func (s *Service) CreateMatchingRule(ctx context.Context, rule model.MatchingRule) (*model.MatchingRule, error) + func (s *Service) DeleteMatchingRule(ctx context.Context, id string) error + func (s *Service) GetMatchingRule(ctx context.Context, id string) (*model.MatchingRule, error) + func (s *Service) GetReconciliation(ctx context.Context, reconciliationID string) (*model.Reconciliation, error) + func (s *Service) ListMatchingRules(ctx context.Context) ([]*model.MatchingRule, error) + func (s *Service) StartInstantReconciliation(ctx context.Context, externalTransactions []model.ExternalTransaction, ...) (string, error) + func (s *Service) StartReconciliation(ctx context.Context, uploadID string, strategy string, groupCriteria string, ...) (string, error) + func (s *Service) UpdateMatchingRule(ctx context.Context, rule model.MatchingRule) (*model.MatchingRule, error) + func (s *Service) UploadExternalData(ctx context.Context, source string, reader io.Reader, filename string) (string, int, error)