proxyconfig

package
v0.0.0-...-176c957 Latest Latest
Warning

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

Go to latest
Published: May 29, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Overview

Package proxy config to handle set/get proxy settings

Index

Constants

View Source
const (
	PROXY_VAR_HTTPS  = "https_proxy"
	PROXY_VAR_HTTP   = "http_proxy"
	PROXY_VAR_BYPASS = "no_proxy"
)

Variables

HTTP Proxy environment variables possible values

Functions

func GetProxyConfig

func GetProxyConfig() (proxyValues map[string]string)

func SetProxyConfig

func SetProxyConfig(log log.T) map[string]string

SetProxyConfig on linux returns the environment variables right away because using environment variables is the only way to configure proxy on linux

Types

This section is empty.

Jump to

Keyboard shortcuts

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