Documentation
¶
Index ¶
- type ApiService
- type Balancer
- type Client
- func (c *Client) AddDestination(dst types.Destination) (string, error)
- func (c *Client) CreateService(svc types.Service) (string, error)
- func (c *Client) DeleteDestination(serviceId, destinationId string) error
- func (c *Client) DeleteService(id string) error
- func (c *Client) GetService(id string) (*types.Service, error)
- func (c *Client) GetServices() ([]*types.Service, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Balancer ¶
type Balancer interface { GetServices() []types.Service AddService(*types.Service) error GetService(string) (*types.Service, error) DeleteService(string) error AddDestination(*types.Service, *types.Destination) error GetDestination(string) (*types.Destination, error) DeleteDestination(*types.Destination) error IsLeader() bool GetLeader() string }
type Client ¶
func (*Client) AddDestination ¶
func (c *Client) AddDestination(dst types.Destination) (string, error)
func (*Client) DeleteDestination ¶
func (*Client) DeleteService ¶
Click to show internal directories.
Click to hide internal directories.