astiproxy

package module
v0.0.0-...-df7af2b Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2019 License: MIT Imports: 3 Imported by: 0

README

Astiproxy

Wrapper on top of http and url to provide proper proxy configuration

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Addr = flag.String("proxy-addr", "", "the proxy addr")
)

Flags

Functions

func New

func New(c Configuration) (cl *http.Client, err error)

New returns an *http.Client with a proxy

Types

type Configuration

type Configuration struct {
	Addr string `toml:"addr"`
}

Configuration represents the configuration of the proxy

func FlagConfig

func FlagConfig() Configuration

FlagConfig generates a Configuration based on flags

Jump to

Keyboard shortcuts

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