Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CheckConfig ¶
func CheckConfig(config *DeployConfig)
CheckConfig used to check config and fix some configuration
Types ¶
type CacheConfig ¶
type CertConfig ¶
type DeployConfig ¶
type DeployConfig struct { LogLevel string ProxyConfig ProxyConfig P2PConfig P2PConfig }
DeployConfig is server config
func InitConfig ¶
func InitConfig(cfgFile string) *DeployConfig
InitConfig used to load config from disk
type P2PConfig ¶
type P2PConfig struct { RunMode string RootList []string NodeIP string DetectAddr string APIKey string ServeBySSL bool Port int MyAddr string // not in yaml CacheConfig CacheConfig PrefetchConfig PrefetchConfig }
type PrefetchConfig ¶
type ProxyConfig ¶
type ProxyConfig struct { Port int ProxyHTTPS bool CertConfig CertConfig }
Click to show internal directories.
Click to hide internal directories.