client

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2015 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

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

func NewClient

func NewClient(endpoint string) *Client

func (*Client) NewProxy

func (client *Client) NewProxy(proxy *Proxy) *Proxy

func (*Client) Proxies

func (client *Client) Proxies() (map[string]*Proxy, error)

func (*Client) Proxy

func (client *Client) Proxy(name string) (*Proxy, error)

func (*Client) ResetState

func (client *Client) ResetState() error

func (*Client) Toxics

func (client *Client) Toxics() (map[string]*Proxy, error)

type Proxy

type Proxy struct {
	Name     string `json:"name"`
	Listen   string `json:"listen"`
	Upstream string `json:"upstream"`
	Enabled  bool   `json:"enabled"`

	ToxicsUpstream   map[string]interface{} `json:"upstream_toxics"`
	ToxicsDownstream map[string]interface{} `json:"downstream_toxics"`
	// contains filtered or unexported fields
}

func (*Proxy) Create

func (proxy *Proxy) Create() error

func (*Proxy) Delete

func (proxy *Proxy) Delete() error

func (*Proxy) Save

func (proxy *Proxy) Save() error

func (*Proxy) Toxics

func (proxy *Proxy) Toxics(direction string) (map[string]interface{}, error)

Jump to

Keyboard shortcuts

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