README ¶ chain5j-config配置中心 简介 chain5j-config chain5j链配置中心。 功能 提供chainConfig和localConfig配置的获取 热加载localConfig,能够让本地配置自动更新 使用说明 node.config, err = config.Factory{}.NewFactory( node.configFile, config.WithDB(node.database), ) 证书 chain5j-config 的源码允许用户在遵循 Apache 2.0 开源证书 规则的前提下使用。 版权 Copyright@2022 chain5j Expand ▾ Collapse ▴ Documentation ¶ Overview ¶ Package config Package config @author: xwc1125 Package config ¶@author: xwc1125 Index ¶ func NewConfig(configFile string, opts ...option) (protocol.Config, error) func WithDB(db protocol.DatabaseReader) option Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func NewConfig ¶ func NewConfig(configFile string, opts ...option) (protocol.Config, error) NewConfig 加载本地配置文件 func WithDB ¶ func WithDB(db protocol.DatabaseReader) option Types ¶ This section is empty. Source Files ¶ View all Source files config.go options.go Click to show internal directories. Click to hide internal directories.