Documentation
¶
Index ¶
- func Debug() bool
- func Env() string
- func GetConfig(path ...interface{}) cfacade.ProfileJSON
- func GetNodeWithConfig(config *Config, nodeId string) (cfacade.INode, error)
- func Init(filePath, nodeId string) (cfacade.INode, error)
- func LoadNode(nodeId string) (cfacade.INode, error)
- func Name() string
- func Path() string
- func PrintLevel() string
- type Config
- func (p *Config) GetBool(path interface{}, defaultVal ...bool) bool
- func (p *Config) GetConfig(path ...interface{}) cfacade.ProfileJSON
- func (p *Config) GetDuration(path interface{}, defaultVal ...time.Duration) time.Duration
- 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) GetString(path interface{}, defaultVal ...string) string
- func (p *Config) Unmarshal(value interface{}) error
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig(path ...interface{}) cfacade.ProfileJSON
func GetNodeWithConfig ¶
func PrintLevel ¶
func PrintLevel() string
Types ¶
type Config ¶
func (*Config) GetConfig ¶
func (p *Config) GetConfig(path ...interface{}) cfacade.ProfileJSON
func (*Config) GetDuration ¶
type Node ¶
type Node struct {
// contains filtered or unexported fields
}
Node node info
func (*Node) RpcAddress ¶
func (*Node) Settings ¶
func (n *Node) Settings() cfacade.ProfileJSON
Click to show internal directories.
Click to hide internal directories.