executor

package
v0.0.0-...-ceb54bf Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func UpdateRule

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

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

type SysProxyDetail

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

type SystemProxyClient

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

func (*SystemProxyClient) Close

func (c *SystemProxyClient) Close() error

func (*SystemProxyClient) RuntimeDetail

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

func (*SystemProxyClient) Start

func (c *SystemProxyClient) Start() error

type TunClient

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

func (*TunClient) Close

func (c *TunClient) Close() error

func (*TunClient) RuntimeDetail

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

func (*TunClient) Start

func (c *TunClient) Start() error

Jump to

Keyboard shortcuts

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