executor

package
v1.31.2 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2025 License: GPL-3.0 Imports: 25 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateRule added in v1.8.2

func UpdateRule() (string, error)

Types

type Client

type Client interface {
	Start() error
	Close() error
	RuntimeDetail(hubAddress string) (interface{}, error)
}

func New

func New() (Client, error)

type Detail

type Detail struct {
	DirectedInterfaceName   string    `json:"directedInterfaceName"`
	DirectedInterfaceV4Addr string    `json:"directedInterfaceV4Addr"`
	TunInterfaceName        string    `json:"tunInterfaceName"`
	LocalDns                DnsDetail `json:"localDns"`
	RemoteDns               DnsDetail `json:"remoteDns"`
	BoostDns                DnsDetail `json:"boostDns"`
	HubAddress              string    `json:"hubAddress"`
}

type DnsDetail added in v1.27.5

type DnsDetail struct {
	Addresses []string `json:"addresses"`
	Servers   []string `json:"servers"`
}

type MixedProxyClient added in v1.29.0

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

func (*MixedProxyClient) Close added in v1.29.0

func (m *MixedProxyClient) Close() error

func (*MixedProxyClient) RuntimeDetail added in v1.29.0

func (m *MixedProxyClient) RuntimeDetail(hubAddress string) (interface{}, error)

func (*MixedProxyClient) Start added in v1.29.0

func (m *MixedProxyClient) Start() error

type MixedProxyDetail added in v1.29.0

type MixedProxyDetail struct {
	HubAddress string `json:"hubAddress"`
}

type SysProxyDetail added in v0.11.0

type SysProxyDetail struct {
	HubAddress string `json:"hubAddress"`
}

type SystemProxyClient added in v0.11.0

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

func (*SystemProxyClient) Close added in v0.11.0

func (c *SystemProxyClient) Close() error

func (*SystemProxyClient) RuntimeDetail added in v0.11.0

func (c *SystemProxyClient) RuntimeDetail(hubAddress string) (interface{}, error)

func (*SystemProxyClient) Start added in v0.11.0

func (c *SystemProxyClient) Start() error

type TunClient added in v0.11.0

type TunClient struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func (*TunClient) Close added in v0.11.0

func (c *TunClient) Close() error

func (*TunClient) RuntimeDetail added in v0.11.0

func (c *TunClient) RuntimeDetail(hubAddress string) (interface{}, error)

func (*TunClient) Start added in v0.11.0

func (c *TunClient) Start() error

Jump to

Keyboard shortcuts

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