Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
Types ¶
type AllConfig ¶
type AllConfig struct {
ChainId string `mapstructure:"chain_id"`
AuthType string `mapstructure:"auth_type"`
ContractMock string `mapstructure:"contract_mock"`
ContractName string `mapstructure:"contract_name"`
SdkConfFile string `mapstructure:"sdk_conf_file"`
UserConfig *UserConfig `mapstructure:"user"`
LogConfig *logger.LogConifg `mapstructure:"log"`
NetConfig *NetConfig `mapstructure:"net"`
ServerConfig *ServerConfig `mapstructure:"server"`
}
AllConfig 所有配置对应的结构体
type NetConfig ¶
type NetConfig struct {
Provider string `mapstructure:"provider"`
ListenAddr string `mapstructure:"listen_addr"`
PeerStreamPoolSize int `mapstructure:"peer_stream_pool_size"`
MaxPeerCountAllow int `mapstructure:"max_peer_count_allow"`
PeerEliminationStrategy int `mapstructure:"peer_elimination_strategy"`
CaPath []string `mapstructure:"ca"`
Seeds []string `mapstructure:"seeds"`
TLSConfig netTlsConfig `mapstructure:"tls"`
}
NetConfig 网络配置
Source Files
¶
- config.go
Click to show internal directories.
Click to hide internal directories.