Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrExist = errors.New("transaction already exists") ErrNotExist = errors.New("transaction does not exist") )
Errors exported by the package.
Functions ¶
This section is empty.
Types ¶
type Repo ¶
type Repo struct {
// contains filtered or unexported fields
}
Repo represents the repository for transactions.
func (*Repo) Add ¶
func (repo *Repo) Add(tx *types.Transaction) error
Add adds a transaction to the transaction pool.
Click to show internal directories.
Click to hide internal directories.