Documentation
¶
Overview ¶
Package registry registers servers. A server report itself on start.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Enable bool `yaml:"enable"` Version string `yaml:"version"` TTL int `yaml:"ttl"` // 服务端检查周期实例是否健康的周期,单位s Token string `yaml:"token"` // token Debug bool `yaml:"debug"` Location *Location `yaml:"location"` }
Config 配置
type PolarisRegistry ¶
type PolarisRegistry struct { Provider polaris.ProviderAPI // contains filtered or unexported fields }
PolarisRegistry 服务注册
func (*PolarisRegistry) Deregister ¶
func (r *PolarisRegistry) Deregister(_ string) error
Deregister 反注册
Click to show internal directories.
Click to hide internal directories.