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 ¶
func UseGeneralServiceDiscovery(serviceCollection *dependencyinjection.ServiceCollection)
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
func NewClient ¶
func NewClient(discovery servicediscovery.IServiceDiscovery) *Client
func (*Client) GetAllInstances ¶
func (c *Client) GetAllInstances(serviceName string) []servicediscovery.ServiceInstance
func (*Client) GetAllServiceNames ¶
func (*Client) GetAllServices ¶
func (c *Client) GetAllServices() ([]*servicediscovery.Service, error)
func (*Client) GetService ¶
func (c *Client) GetService(serviceName string) (*servicediscovery.Service, error)
func (*Client) Watch ¶
func (c *Client) Watch(opts ...servicediscovery.WatchOption) (servicediscovery.Watcher, error)
Click to show internal directories.
Click to hide internal directories.