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 ¶ added in v1.1.0
func GetConfig(path ...interface{}) cfacade.ProfileJSON
func GetNodeWithConfig ¶ added in v1.2.3
func PrintLevel ¶ added in v1.1.29
func PrintLevel() string
Types ¶
type Config ¶
func (*Config) GetConfig ¶ added in v1.1.29
func (p *Config) GetConfig(path ...interface{}) cfacade.ProfileJSON
func (*Config) GetDuration ¶ added in v1.2.7
type Node ¶ added in v1.1.5
type Node struct {
// contains filtered or unexported fields
}
Node node info
func (*Node) RpcAddress ¶ added in v1.1.5
func (*Node) Settings ¶ added in v1.1.5
func (n *Node) Settings() cfacade.ProfileJSON
Click to show internal directories.
Click to hide internal directories.