Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrTxNotFound = errTxNotFound{errors.New("no such transaction")}
)
Functions ¶
This section is empty.
Types ¶
type EthereumAdapter ¶
type EthereumAdapter struct{}
func (*EthereumAdapter) FindTxByHash ¶
func (a *EthereumAdapter) FindTxByHash(hash string) (*dto.Transaction, error)
type MockBlockchainAdapter ¶
type MockBlockchainAdapter struct {
// contains filtered or unexported fields
}
func NewMockBlockchain ¶
func NewMockBlockchain() *MockBlockchainAdapter
func (*MockBlockchainAdapter) CreateTx ¶
func (a *MockBlockchainAdapter) CreateTx(hash string, content io.Reader) (*dto.Transaction, error)
CreateTx is used to testing only
func (*MockBlockchainAdapter) FindTxByHash ¶
func (a *MockBlockchainAdapter) FindTxByHash(hash string) (*dto.Transaction, error)
Click to show internal directories.
Click to hide internal directories.