Documentation ¶
Index ¶
- func Final()
- func GetNode() *node.NodeEngine
- func InitFabricNode() error
- func InitLogger(module string) *logging.Logger
- func PreInitFabricNode(ctx context.Context, name string)
- func RunFabricNode() (error, func(ctx context.Context))
- func RunNode(ncfg *NodeConfig)
- type GlobalConfig
- type NodeConfig
- type PerformanceTuning
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNode ¶
func GetNode() *node.NodeEngine
func InitFabricNode ¶
func InitFabricNode() error
func InitLogger ¶
func InitLogger(module string) *logging.Logger
deprecated: use the local package in peerex/logging
func PreInitFabricNode ¶
func RunFabricNode ¶
Types ¶
type GlobalConfig ¶
type GlobalConfig struct { EnvPrefix string ConfigFileName string ConfigPath []string SkipConfigFile bool NotUseSourceConfig bool DefaultSetting map[string]interface{} Perf PerformanceTuning LogRole string //peer, node, network, chaincode, version, can apply different log level from config file }
func (*GlobalConfig) Apply ¶
func (g *GlobalConfig) Apply() error
type NodeConfig ¶
type NodeConfig struct { Settings map[string]interface{} //call after preinit and before init, for adjusting the configurations //in node Schemes func(*node.NodeEngine) //will be call after init and before running, to execute additional works, //e.g. prepare the chaincodes, etc PostRun func() error //instead of the general guard function, being call after node is running, //and node will be stop after this function is returned TaskRun func() // contains filtered or unexported fields }
func (*NodeConfig) PreConfig ¶
func (ncfg *NodeConfig) PreConfig() error
execute config first, so user can use viper and some config modules and log
func (*NodeConfig) SetPreConfig ¶
func (ncfg *NodeConfig) SetPreConfig(cfg *GlobalConfig)
type PerformanceTuning ¶
type PerformanceTuning struct {
MaxProcs int
}
func (*PerformanceTuning) Apply ¶
func (p *PerformanceTuning) Apply()
Click to show internal directories.
Click to hide internal directories.