blockchains

package
v0.0.0-...-4ea9c30 Latest Latest
Warning

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

Go to latest
Published: Jan 5, 2019 License: MIT Imports: 5 Imported by: 0

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)

Jump to

Keyboard shortcuts

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