port

package
v0.0.0-...-dd3921f Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2024 License: MIT Imports: 2 Imported by: 0

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

Jump to

Keyboard shortcuts

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