Documentation
¶
Index ¶
- func ArrivalTimeOut() int64
- func ConfigPath() string
- func Debug() bool
- func DiscoveryMode() string
- func Env() string
- func GetConfig(path ...any) cfacade.ProfileJSON
- func GetNodeWithConfig(config *Config, nodeId string, ndType string) (cfacade.INode, error)
- func Init(filePath, nodeIdStr string) (cfacade.INode, error)
- func LoadNode(nodeId, nodeType string) (cfacade.INode, error)
- func Name() string
- func NodeName() string
- func Path() string
- func PrintLevel() string
- func PrintLogPath() 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 ArrivalTimeOut ¶ added in v1.0.12
func ArrivalTimeOut() int64
func ConfigPath ¶ added in v1.0.16
func ConfigPath() string
func DiscoveryMode ¶ added in v1.0.12
func DiscoveryMode() string
func GetConfig ¶
func GetConfig(path ...any) cfacade.ProfileJSON
func GetNodeWithConfig ¶
func PrintLevel ¶
func PrintLevel() string
func PrintLogPath ¶ added in v1.0.13
func PrintLogPath() string
Types ¶
type Config ¶
func JsonConfig ¶ added in v1.0.17
func JsonConfig() *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.