Documentation ¶
Index ¶
- func CreateServiceInstance(environment *abstractions.HostEnvironment) servicediscovery.ServiceInstance
- func UseGeneralServiceDiscovery(serviceCollection *dependencyinjection.ServiceCollection)
- type Client
- func (c *Client) GetAllInstances(serviceName string) []servicediscovery.ServiceInstance
- func (c *Client) GetAllServiceNames() ([]string, error)
- func (c *Client) GetAllServices() ([]*servicediscovery.Service, error)
- func (c *Client) GetService(serviceName string) (*servicediscovery.Service, error)
- func (c *Client) Watch(opts ...servicediscovery.WatchOption) (servicediscovery.Watcher, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateServiceInstance ¶
func CreateServiceInstance(environment *abstractions.HostEnvironment) servicediscovery.ServiceInstance
func UseGeneralServiceDiscovery ¶ added in v1.6.6
func UseGeneralServiceDiscovery(serviceCollection *dependencyinjection.ServiceCollection)
Types ¶
type Client ¶ added in v1.6.6
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶ added in v1.6.6
func NewClient(discovery servicediscovery.IServiceDiscovery) *Client
func (*Client) GetAllInstances ¶ added in v1.6.6
func (c *Client) GetAllInstances(serviceName string) []servicediscovery.ServiceInstance
func (*Client) GetAllServiceNames ¶ added in v1.6.6
func (*Client) GetAllServices ¶ added in v1.6.6
func (c *Client) GetAllServices() ([]*servicediscovery.Service, error)
func (*Client) GetService ¶ added in v1.6.6
func (c *Client) GetService(serviceName string) (*servicediscovery.Service, error)
func (*Client) Watch ¶ added in v1.6.6
func (c *Client) Watch(opts ...servicediscovery.WatchOption) (servicediscovery.Watcher, error)
Click to show internal directories.
Click to hide internal directories.