Documentation
¶
Index ¶
- func Debug() bool
- func Env() string
- func GetConfig(path ...any) 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 any, defaultVal ...bool) bool
- func (p *Config) GetConfig(path ...any) cfacade.ProfileJSON
- func (p *Config) GetDuration(path any, defaultVal ...time.Duration) time.Duration
- func (p *Config) GetInt(path any, defaultVal ...int) int
- func (p *Config) GetInt32(path any, defaultVal ...int32) int32
- func (p *Config) GetInt64(path any, defaultVal ...int64) int64
- func (p *Config) GetString(path any, defaultVal ...string) string
- func (p *Config) Unmarshal(value any) error
- type Node
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConfig ¶
func GetConfig(path ...any) cfacade.ProfileJSON
func GetNodeWithConfig ¶
func PrintLevel ¶
func PrintLevel() string
Types ¶
type Config ¶
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.