Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
// ServiceIP 服务IP
ServiceIP string
// ServicePort 服务端口
ServicePort int
// CertPemPath TLS公钥文件
CertPemPath string
// CertKeyPath TLS秘钥文件
CertKeyPath string
// CertServerName TLS加密服务器名称
CertServerName string
// SwaggerDir Swagger文件目录
SwaggerDir string
// ServiceName 服务名称
ServiceName string
// TracingServerUrl 追踪服务器URL((http://ip:port/path))
TracingServerUrl string
// DiscoveryServerAddr 注册发现服务器地址(IP:PORT)
DiscoveryServerAddr string
// DiscoveryInterval 向注册发现服务器进行注册的周期("xxs")
DiscoveryInterval string
// DiscoveryDeregisterCriticalServiceAfter 注册服务器未接收到多长时间删除该服务信息("xxs")
DiscoveryDeregisterCriticalServiceAfter string
}
Configuration 配置信息
func (*Configuration) Load ¶
func (c *Configuration) Load(filename string) error
func (*Configuration) Save ¶
func (c *Configuration) Save(filename string) error
Click to show internal directories.
Click to hide internal directories.