Documentation ¶
Index ¶
- func BuildGenesisDocs(network *NetworkInit, globals *core.GlobalValues, time time.Time, ...) (map[string]*tmtypes.GenesisDoc, error)
- func BuildNodesConfig(network *NetworkInit, mkcfg MakeConfigFunc) [][][2]*config.Config
- func ConfigureNodePorts(node *NodeInit, cfg *config.Config, offset config.PortOffset)
- func LoadOrGenerateTmPrivKey(privFileName string) (ed25519.PrivKey, error)
- func WriteNodeFiles(cfg *config.Config, privValKey, nodeKey []byte, genDoc *tmtypes.GenesisDoc) (err error)
- type BvnInit
- type Daemon
- func (d *Daemon) ConnectDirectly(e *Daemon) error
- func (d *Daemon) DB_TESTONLY() *database.Database
- func (d *Daemon) Jrpc_TESTONLY() *api.JrpcMethods
- func (d *Daemon) Key() crypto.PrivKey
- func (d *Daemon) LocalClient() (connections.ABCIClient, error)
- func (d *Daemon) Node_TESTONLY() *node.Node
- func (d *Daemon) Start() (err error)
- func (d *Daemon) Stop() error
- type DevnetOptions
- type MakeConfigFunc
- type NetworkInit
- type NodeInit
- func (n *NodeInit) Address(listen bool, scheme string, offset ...config.PortOffset) string
- func (v *NodeInit) MarshalJSON() ([]byte, error)
- func (n *NodeInit) Port(offset ...config.PortOffset) int
- func (n *NodeInit) TmNodeAddress(offset ...config.PortOffset) string
- func (v *NodeInit) UnmarshalJSON(data []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BuildGenesisDocs ¶ added in v1.0.0
func BuildGenesisDocs(network *NetworkInit, globals *core.GlobalValues, time time.Time, logger log.Logger, factomAddresses func() (io.Reader, error)) (map[string]*tmtypes.GenesisDoc, error)
func BuildNodesConfig ¶ added in v1.0.0
func BuildNodesConfig(network *NetworkInit, mkcfg MakeConfigFunc) [][][2]*config.Config
func ConfigureNodePorts ¶ added in v1.0.0
func ConfigureNodePorts(node *NodeInit, cfg *config.Config, offset config.PortOffset)
func LoadOrGenerateTmPrivKey ¶ added in v1.0.0
func WriteNodeFiles ¶ added in v1.0.0
Types ¶
type BvnInit ¶ added in v1.0.0
type BvnInit struct { Id string `json:"id,omitempty" form:"id" query:"id" validate:"required"` Nodes []*NodeInit `json:"nodes,omitempty" form:"nodes" query:"nodes" validate:"required"` }
func (*BvnInit) MarshalJSON ¶ added in v1.0.0
func (*BvnInit) Peers ¶ added in v1.0.0
func (b *BvnInit) Peers(node *NodeInit, offset ...config.PortOffset) []string
func (*BvnInit) UnmarshalJSON ¶ added in v1.0.0
type Daemon ¶
type Daemon struct { Config *config.Config Logger tmlog.Logger // knobs for tests // IsTest bool UseMemDB bool // contains filtered or unexported fields }
func (*Daemon) ConnectDirectly ¶ added in v0.5.1
func (*Daemon) DB_TESTONLY ¶
func (*Daemon) Jrpc_TESTONLY ¶
func (d *Daemon) Jrpc_TESTONLY() *api.JrpcMethods
func (*Daemon) LocalClient ¶ added in v1.0.0
func (d *Daemon) LocalClient() (connections.ABCIClient, error)
func (*Daemon) Node_TESTONLY ¶
type DevnetOptions ¶ added in v1.0.0
type MakeConfigFunc ¶ added in v1.0.0
type NetworkInit ¶ added in v1.0.0
type NetworkInit struct { Id string `json:"id,omitempty" form:"id" query:"id" validate:"required"` Bvns []*BvnInit `json:"bvns,omitempty" form:"bvns" query:"bvns" validate:"required"` }
func NewDevnet ¶ added in v1.0.0
func NewDevnet(opts DevnetOptions) *NetworkInit
func (*NetworkInit) MarshalJSON ¶ added in v1.0.0
func (v *NetworkInit) MarshalJSON() ([]byte, error)
func (*NetworkInit) Peers ¶ added in v1.0.0
func (n *NetworkInit) Peers(node *NodeInit, offset ...config.PortOffset) []string
func (*NetworkInit) UnmarshalJSON ¶ added in v1.0.0
func (v *NetworkInit) UnmarshalJSON(data []byte) error
type NodeInit ¶ added in v1.0.0
type NodeInit struct { DnnType config.NodeType `json:"dnnType,omitempty" form:"dnnType" query:"dnnType" validate:"required"` BvnnType config.NodeType `json:"bvnnType,omitempty" form:"bvnnType" query:"bvnnType" validate:"required"` BasePort uint64 `json:"basePort,omitempty" form:"basePort" query:"basePort" validate:"required"` HostName string `json:"hostName,omitempty" form:"hostName" query:"hostName" validate:"required"` ListenIP string `json:"listenIP,omitempty" form:"listenIP" query:"listenIP" validate:"required"` PrivValKey []byte `json:"privValKey,omitempty" form:"privValKey" query:"privValKey" validate:"required"` NodeKey []byte `json:"nodeKey,omitempty" form:"nodeKey" query:"nodeKey" validate:"required"` }
func (*NodeInit) MarshalJSON ¶ added in v1.0.0
func (*NodeInit) TmNodeAddress ¶
func (n *NodeInit) TmNodeAddress(offset ...config.PortOffset) string
func (*NodeInit) UnmarshalJSON ¶ added in v1.0.0
Click to show internal directories.
Click to hide internal directories.