systemproxy

package
v1.3.5-beta8 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2024 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNotImpl = errors.New(fmt.Sprintf("systemproxy not implemented on this platform: %v", runtime.GOOS))

ErrNotImpl error is returned when the current platform isn't supported yet.

Functions

func Set

func Set(s Settings) error

Set updates systemwide proxy settings.

Types

type Settings

type Settings struct {
	// Enabled is true if static (i.e. non-PAC) proxy is enabled
	Enabled bool

	// DefaultServer is the server used for all protocols.
	DefaultServer string
}

Settings represents systemwide proxy settings.

func Get

func Get() (Settings, error)

Get returns the current systemwide proxy settings.

Jump to

Keyboard shortcuts

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