Documentation
¶
Index ¶
- type Registry
- func (r *Registry) Deregister(_ context.Context, service *registry.ServiceInstance) error
- func (r *Registry) GetService(_ context.Context, name string) ([]*registry.ServiceInstance, error)
- func (r *Registry) Register(_ context.Context, service *registry.ServiceInstance) error
- func (r *Registry) Watch(_ context.Context, name string) (registry.Watcher, error)
- type ServiceEntry
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registry ¶
type Registry struct {
// contains filtered or unexported fields
}
func New ¶
func New(authority string, entries ...*ServiceEntry) *Registry
func (*Registry) Deregister ¶
func (*Registry) GetService ¶
type ServiceEntry ¶
func NewServiceEntry ¶
func NewServiceEntry(id, name, version string, endpoints ...string) *ServiceEntry
Click to show internal directories.
Click to hide internal directories.