Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionCreate ¶
type TransactionCreate struct {
TxHex string
}
TransactionCreate contains the properties required to create a transaction.
type TransactionService ¶
type TransactionService interface { // Create will store a transaction in the db. Create(ctx context.Context, req TransactionCreate) error }
TransactionService enforces validation of arguments and business rules.
type TransactionWriter ¶
type TransactionWriter interface { // Create will add a transaction to the data store. Create(ctx context.Context, req *bt.Tx) error }
TransactionWriter will add transactions to a data store.
Click to show internal directories.
Click to hide internal directories.