Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Registrar ¶
type Registrar interface {
Register(ctx context.Context, svc *ServiceInstance) error
Deregister(ctx context.Context, svc *ServiceInstance) error
}
type ServiceInstance ¶
type ServiceInstance struct {
ID string `json:"id"`
Name string `json:"name"`
Version string `json:"version"`
Metadata map[string]string `json:"metadata"`
Endpoints []string `json:"endpoints"`
}
func (*ServiceInstance) Equal ¶
func (si *ServiceInstance) Equal(other any) bool
func (*ServiceInstance) String ¶
func (si *ServiceInstance) String() string
type Watcher ¶
type Watcher interface {
Next() ([]*ServiceInstance, error)
Stop() error
}
Click to show internal directories.
Click to hide internal directories.