Documentation ¶
Index ¶
- type ServiceDiscovery
- func (s *ServiceDiscovery) ServiceDeregister(ctx context.Context, serviceID string) error
- func (s *ServiceDiscovery) ServiceInfo(ctx context.Context, serviceName string, tags []string) ([]*api.ServiceEntry, error)
- func (s *ServiceDiscovery) ServiceList(ctx context.Context) (map[string][]string, error)
- func (s *ServiceDiscovery) ServiceRegister(ctx context.Context, reg *api.AgentServiceRegistration) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ServiceDiscovery ¶
type ServiceDiscovery struct {
// contains filtered or unexported fields
}
func NewServiceDiscovery ¶
func NewServiceDiscovery(cli *api.Client) *ServiceDiscovery
func (*ServiceDiscovery) ServiceDeregister ¶
func (s *ServiceDiscovery) ServiceDeregister(ctx context.Context, serviceID string) error
func (*ServiceDiscovery) ServiceInfo ¶
func (s *ServiceDiscovery) ServiceInfo(ctx context.Context, serviceName string, tags []string) ([]*api.ServiceEntry, error)
func (*ServiceDiscovery) ServiceList ¶
func (*ServiceDiscovery) ServiceRegister ¶
func (s *ServiceDiscovery) ServiceRegister(ctx context.Context, reg *api.AgentServiceRegistration) error
Click to show internal directories.
Click to hide internal directories.