Documentation ¶
Index ¶
- func Call(method string, args ...interface{}) call
- func FakePeers(num int) []ethnode.PeerInfo
- type Calls
- type FakeNode
- func (n *FakeNode) AddTrustedPeer(ctx context.Context, nodeID string) error
- func (n *FakeNode) BlockNumber(ctx context.Context) (uint64, error)
- func (n *FakeNode) ConnectPeer(ctx context.Context, nodeURI string) error
- func (n *FakeNode) ContractBackend() bind.ContractBackend
- func (n *FakeNode) DisconnectPeer(ctx context.Context, nodeID string) error
- func (n *FakeNode) Enode(ctx context.Context) (string, error)
- func (n *FakeNode) Kind() ethnode.NodeKind
- func (n *FakeNode) Peers(ctx context.Context) ([]ethnode.PeerInfo, error)
- func (n *FakeNode) RemoveTrustedPeer(ctx context.Context, nodeID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FakeNode ¶
type FakeNode struct { NodeKind ethnode.NodeKind NodeID string Calls Calls FakePeers []ethnode.PeerInfo FakeBlockNumber uint64 }
FakeNode is an implementation of ethnode.EthNode that no-ops for everything.
func (*FakeNode) AddTrustedPeer ¶
func (*FakeNode) BlockNumber ¶ added in v0.2.2
func (*FakeNode) ConnectPeer ¶
func (*FakeNode) ContractBackend ¶ added in v0.2.3
func (n *FakeNode) ContractBackend() bind.ContractBackend
func (*FakeNode) DisconnectPeer ¶
Click to show internal directories.
Click to hide internal directories.