Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct { Name string `json:"name" yaml:"name"` Type service.RegisterType `json:"type" yaml:"type"` Endpoints []string `json:"endpoint" yaml:"endpoint"` Secure bool `json:"secure" yaml:"secure"` Timeout time.Duration `json:"timeout" yaml:"timeout"` ServerAddr string `json:"server_addr" yaml:"server_addr"` RetryTimes uint32 `json:"retry_times" yaml:"retry_times"` Watchers []Watcher `json:"watchers" yaml:"watchers"` }
Registry registry
type Service ¶
type Service struct { service.Service `json:",inline" yaml:",inline"` Options config.Options `json:"options" yaml:"options"` Registry *ServiceRegistry `json:"registry" yaml:"registry"` }
Service service
type ServiceRegistry ¶
type ServiceRegistry struct { // registry name Name string `json:"name" yaml:"name"` // node weight Weight uint32 `json:"weight" yaml:"weight"` // protocol between two servers Protocol service.Protocol `json:"protocol" yaml:"protocol"` TTL time.Duration `json:"ttl" yaml:"ttl"` Heartbeat time.Duration `json:"heartbeat" yaml:"heartbeat"` }
ServiceRegistry service's registry infor
Click to show internal directories.
Click to hide internal directories.