api

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2019 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DelayTestError   = errors.New("503: An error occurred in the delay test")
	DelayTestTimeout = errors.New("408: Timeout")
)

Functions

This section is empty.

Types

type Client

type Client struct {
	BaseURL string
}

func (*Client) GetConfigs

func (c *Client) GetConfigs() (*model.Config, error)

func (*Client) GetDelay

func (c *Client) GetDelay(ctx context.Context, proxy string) (*model.Delay, error)

func (*Client) GetLogs

func (c *Client) GetLogs(ctx context.Context) (io.ReadCloser, error)

func (*Client) GetProxies

func (c *Client) GetProxies() (*model.Proxies, error)

func (*Client) GetTraffics

func (c *Client) GetTraffics(ctx context.Context) (io.ReadCloser, error)

func (*Client) UpdateMode

func (c *Client) UpdateMode(mode T.Mode) error

func (*Client) UpdateProxy

func (c *Client) UpdateProxy(group, proxy string) error

Jump to

Keyboard shortcuts

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