api

package
v0.0.0-...-c5683e2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 21, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiService

type ApiService struct {
	// contains filtered or unexported fields
}

func NewAPI

func NewAPI() ApiService

func (ApiService) Serve

func (as ApiService) Serve()

type Client

type Client struct {
	Addr string
}

func NewClient

func NewClient(addr string) *Client

func (*Client) AddDestination

func (c *Client) AddDestination(dst Destination) error

func (*Client) CreateService

func (c *Client) CreateService(svc Service) error

func (*Client) DeleteDestination

func (c *Client) DeleteDestination(dst Destination) error

func (*Client) DeleteService

func (c *Client) DeleteService(id string) error

func (*Client) GetService

func (c *Client) GetService(id string) (*Service, error)

func (*Client) GetServices

func (c *Client) GetServices() ([]*Service, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL