Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is meant to handle the ARC callback and update the transaction status in the database.
func NewService ¶
func NewService(logger zerolog.Logger, transactionsRepo TransactionsRepo) *Service
NewService creates a new transaction sync service.
type TransactionsRepo ¶
type TransactionsRepo interface {
UpdateTransaction(ctx context.Context, trackedTx *txmodels.TrackedTransaction) error
GetTransaction(ctx context.Context, txID string) (transaction *txmodels.TrackedTransaction, err error)
}
TransactionsRepo is an interface for transactions repository.
Click to show internal directories.
Click to hide internal directories.