Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EtcdDiscovery ¶
type EtcdDiscovery struct {
// contains filtered or unexported fields
}
func NewEtcdDiscovery ¶
func NewEtcdDiscovery(etcdClient *clientv3.Client, domain string) *EtcdDiscovery
func (*EtcdDiscovery) Address ¶
func (e *EtcdDiscovery) Address() (addr string)
func (*EtcdDiscovery) Close ¶
func (e *EtcdDiscovery) Close() (err error)
type EtcdRegistry ¶
type EtcdRegistry struct {
// contains filtered or unexported fields
}
func NewEtcdRegistry ¶
func (*EtcdRegistry) Close ¶
func (e *EtcdRegistry) Close() (err error)
func (*EtcdRegistry) Register ¶
func (e *EtcdRegistry) Register(serviceInfo *ServiceInfo) (err error)
type Registry ¶
type Registry interface { Register(serviceInfo *ServiceInfo) (err error) Close() (err error) }
type ServiceInfo ¶
func NewServiceInfo ¶
func NewServiceInfo() *ServiceInfo
Click to show internal directories.
Click to hide internal directories.