node

package
v0.0.12-rc.1 Latest Latest
Warning

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

Go to latest
Published: Feb 12, 2020 License: AGPL-3.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeNode

func MakeNode(rpcClient core.RpcClient) core.Node

Types

type GanacheClient

type GanacheClient struct {
	PropertiesReader
}

func (GanacheClient) NodeInfo

func (client GanacheClient) NodeInfo() (string, string)

type GethClient

type GethClient struct {
	PropertiesReader
}

type IPropertiesReader

type IPropertiesReader interface {
	NodeInfo() (id string, name string)
	NetworkId() float64
	GenesisBlock() string
}

type InfuraClient

type InfuraClient struct {
	PropertiesReader
}

func (InfuraClient) NodeInfo

func (client InfuraClient) NodeInfo() (string, string)

type ParityClient

type ParityClient struct {
	PropertiesReader
}

func (ParityClient) NodeInfo

func (client ParityClient) NodeInfo() (string, string)

type PropertiesReader

type PropertiesReader struct {
	// contains filtered or unexported fields
}

func (PropertiesReader) GenesisBlock

func (reader PropertiesReader) GenesisBlock() string

func (PropertiesReader) NetworkId

func (reader PropertiesReader) NetworkId() float64

func (PropertiesReader) NodeInfo

func (reader PropertiesReader) NodeInfo() (string, string)

Jump to

Keyboard shortcuts

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