Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscriptor ¶
type Subscriptor interface {
Subscribe(ctx context.Context, subscription *domain.Subscription) error
}
Subscriptor defines the behavior of a subscriptor
type TransactionHandler ¶
type TransactionHandler interface { TransactionWriter TransactionRetriever }
TransactionHandler defines the behavior of a transaction handler
type TransactionRetriever ¶
type TransactionRetriever interface { ListTransactions(ctx context.Context, limit int, next string) ([]domain.Transaction, error) ValidateTransaction(ctx context.Context, transaction *domain.Transaction) error }
TransactionRetriever defines the behavior of a transaction retriever
type TransactionWriter ¶
type TransactionWriter interface {
CreateTransaction(ctx context.Context, transaction *domain.Transaction) error
}
TransactionWriter defines the behavior of a transaction writer
Click to show internal directories.
Click to hide internal directories.