Documentation ¶
Index ¶
- func CustomHTTPErrorHandler(err error, c echo.Context)
- type ApiService
- type Client
- func (c *Client) AddDestination(dst types.Destination) error
- func (c *Client) CreateService(svc types.Service) 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)
- type ErrResponse
- type ServiceResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CustomHTTPErrorHandler ¶
Types ¶
type ApiService ¶
type ApiService struct {
// contains filtered or unexported fields
}
ApiService ...
func (ApiService) Serve ¶
func (as ApiService) Serve()
Serve starts the api. Binds IP using HOST env or 0.0.0.0 Binds to port using PORT env or 8000
type Client ¶
func (*Client) AddDestination ¶
func (c *Client) AddDestination(dst types.Destination) error
func (*Client) DeleteDestination ¶
func (*Client) DeleteService ¶
type ErrResponse ¶
type ErrResponse map[string]interface{}
type ServiceResponse ¶
type ServiceResponse struct { types.Service Destinations []types.Destination }
Click to show internal directories.
Click to hide internal directories.