profile

package
v0.0.0-...-3ced3f3 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2020 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Config

func Config() jsoniter.Any

func ConfigDir

func ConfigDir() string

func Debug

func Debug() bool

func Init

func Init(configPath, profileName string) error

func LoadNodes

func LoadNodes()

func Name

func Name() string

Types

type Node

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

Node

func (*Node) Address

func (n *Node) Address() string

func (*Node) IsDisabled

func (n *Node) IsDisabled() bool

func (*Node) NodeId

func (n *Node) NodeId() 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

type NodesConfig

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

func Nodes

func Nodes() *NodesConfig

func (*NodesConfig) Get

func (n *NodesConfig) Get(nodeType, nodeId string) interfaces.INode

func (*NodesConfig) GetType

func (n *NodesConfig) GetType(nodeId string) (nodeType string, error error)

func (*NodesConfig) Load

func (n *NodesConfig) Load()

Register nodesConfig config

func (*NodesConfig) Map

func (n *NodesConfig) Map() interfaces.NodeMap

Jump to

Keyboard shortcuts

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