Help us shape the future of Go! Take the 2026 Go Developer Survey

settings

package
v1.14.4 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: GPL-2.0 Imports: 18 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinuxSystemProxy added in v1.4.3

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

func NewLinuxSystemProxy added in v1.14.0

func NewLinuxSystemProxy(serverAddr M.Socksaddr, supportSOCKS bool, execute func(name string, args ...string) error) (*LinuxSystemProxy, error)

func NewSystemProxy added in v1.4.3

func NewSystemProxy(ctx context.Context, serverAddr M.Socksaddr, supportSOCKS bool, bypassDomain []string) (*LinuxSystemProxy, error)

func (*LinuxSystemProxy) Close added in v1.14.0

func (p *LinuxSystemProxy) Close() error

func (*LinuxSystemProxy) Disable added in v1.4.3

func (p *LinuxSystemProxy) Disable() error

func (*LinuxSystemProxy) Enable added in v1.4.3

func (p *LinuxSystemProxy) Enable() error

func (*LinuxSystemProxy) IsEnabled added in v1.4.3

func (p *LinuxSystemProxy) IsEnabled() bool

type LinuxWIFIMonitor added in v1.13.0

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

func (*LinuxWIFIMonitor) Close added in v1.13.0

func (m *LinuxWIFIMonitor) Close() error

func (*LinuxWIFIMonitor) ReadWIFIState added in v1.13.0

func (m *LinuxWIFIMonitor) ReadWIFIState(ctx context.Context) adapter.WIFIState

func (*LinuxWIFIMonitor) Start added in v1.13.0

func (m *LinuxWIFIMonitor) Start() error

type SystemProxy added in v1.4.3

type SystemProxy interface {
	IsEnabled() bool
	Enable() error
	Disable() error
	Close() error
}

type WIFIMonitor added in v1.13.0

type WIFIMonitor interface {
	ReadWIFIState(ctx context.Context) adapter.WIFIState
	Start() error
	Close() error
}

func NewWIFIMonitor added in v1.13.0

func NewWIFIMonitor(callback func(adapter.WIFIState)) (WIFIMonitor, error)

Jump to

Keyboard shortcuts

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