Documentation
¶
Index ¶
Constants ¶
View Source
const ( HttpKey = "HTTP_PROXY" HttpsKey = "HTTPS_PROXY" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LocalProxy ¶
type LocalProxy struct {
// HttpProxy host url. eg: http://127.0.0.1:1080
HttpProxy string `json:"http_proxy"`
// HttpsProxy host url. eg: http://127.0.0.1:1080
HttpsProxy string `json:"https_proxy"`
}
LocalProxy local proxy ENV setting.
func (*LocalProxy) Apply ¶
func (lp *LocalProxy) Apply(beforeFn func(lp *LocalProxy))
Apply proxy ENV setting.
func (*LocalProxy) RunFunc ¶
func (lp *LocalProxy) RunFunc(fn func())
RunFunc on open proxy ENV, unset ENV after run.
Click to show internal directories.
Click to hide internal directories.