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

settings

package
v1.12.4 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2025 License: GPL-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LinuxSystemProxy

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

func NewSystemProxy

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

func (*LinuxSystemProxy) Disable

func (p *LinuxSystemProxy) Disable() error

func (*LinuxSystemProxy) Enable

func (p *LinuxSystemProxy) Enable() error

func (*LinuxSystemProxy) IsEnabled

func (p *LinuxSystemProxy) IsEnabled() bool

type SystemProxy

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

Jump to

Keyboard shortcuts

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