cherryNode

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Jul 16, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Get

func Get(nodeType, nodeId string) (cherryFacade.INode, error)

func GetNode

func GetNode(nodeId string) (node cherryFacade.INode, err error)

func GetType

func GetType(nodeId string) (nodeType string, error error)

func Load

func Load(config jsoniter.Any) error

Load nodesConfig config

func Map

func Map() *cherryFacade.NodeMap

Types

type Node

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

Node node info

func (*Node) Address

func (n *Node) Address() string

func (*Node) Enabled

func (n *Node) Enabled() bool

func (*Node) NodeId

func (n *Node) NodeId() string

func (*Node) NodeType

func (n *Node) NodeType() string

func (*Node) RpcAddress

func (n *Node) RpcAddress() string

func (*Node) Settings

func (n *Node) Settings() jsoniter.Any

func (*Node) String

func (n *Node) String() string

Jump to

Keyboard shortcuts

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