Documentation ¶
Index ¶
- func Debug() bool
- func Dir() string
- func FileName() string
- func GetConfig(path ...interface{}) cfacade.JsonConfig
- func GetNodeWithConfig(config *Config, nodeId string) (cfacade.INode, error)
- func Init(profilePath, profileName, nodeId string) (cfacade.INode, error)
- func LoadNode(nodeId string) (cfacade.INode, error)
- func Name() string
- func PrintLevel() string
- type Config
- func (p *Config) GetBool(path interface{}, defaultVal ...bool) bool
- func (p *Config) GetConfig(path ...interface{}) cfacade.JsonConfig
- func (p *Config) GetInt(path interface{}, defaultVal ...int) int
- func (p *Config) GetInt32(path interface{}, defaultVal ...int32) int32
- func (p *Config) GetInt64(path interface{}, defaultVal ...int64) int64
- func (p *Config) GetJsonObject(path interface{}, ptrVal interface{}) error
- func (p *Config) GetString(path interface{}, defaultVal ...string) string
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig(path ...interface{}) cfacade.JsonConfig
func GetNodeWithConfig ¶
func PrintLevel ¶
func PrintLevel() string
Types ¶
type Config ¶
func (*Config) GetConfig ¶
func (p *Config) GetConfig(path ...interface{}) cfacade.JsonConfig
func (*Config) GetJsonObject ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node node info
func (*Node) RpcAddress ¶
func (*Node) Settings ¶
func (n *Node) Settings() cfacade.JsonConfig
Click to show internal directories.
Click to hide internal directories.