client

package
v0.0.0-...-1656c47 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2024 License: Apache-2.0 Imports: 11 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 New

func New(host string, port int) *Client

func (*Client) GetAllProxyStatus

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

func (*Client) GetConfig

func (c *Client) GetConfig(ctx context.Context) (string, error)

func (*Client) GetProxyStatus

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

func (*Client) Reload

func (c *Client) Reload(ctx context.Context, strictMode bool) error

func (*Client) SetAuth

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

func (*Client) Stop

func (c *Client) Stop(ctx context.Context) error

func (*Client) UpdateConfig

func (c *Client) UpdateConfig(ctx context.Context, content string) error

Jump to

Keyboard shortcuts

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