client

package
v0.58.0 Latest Latest
Warning

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

Go to latest
Published: May 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 2

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 New

func New(host string, port int) *Client

func (*Client) GetAllProxyStatus

func (c *Client) GetAllProxyStatus() (client.StatusResp, error)

func (*Client) GetConfig

func (c *Client) GetConfig() (string, error)

func (*Client) GetProxyStatus

func (c *Client) GetProxyStatus(name string) (*client.ProxyStatusResp, error)

func (*Client) Reload

func (c *Client) Reload(strictMode bool) error

func (*Client) SetAuth

func (c *Client) SetAuth(user, pwd string)

func (*Client) Stop

func (c *Client) Stop() error

func (*Client) UpdateConfig

func (c *Client) UpdateConfig(content string) error

Jump to

Keyboard shortcuts

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