proxy

package module
v0.0.0-...-591a0f5 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2016 License: Apache-2.0 Imports: 10 Imported by: 0

README

proxy

proxy utils

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClientsChan

func NewClientsChan() (chan<- *http.Client, <-chan *http.Client, chan struct{})

Types

type ClientInfo

type ClientInfo struct {
	HttpProxyAddr string
}

type ClientSet

type ClientSet struct {
	sync.RWMutex

	Logger func(ClientInfo, ClientState)
	// contains filtered or unexported fields
}

func NewClientSet

func NewClientSet() *ClientSet

func (*ClientSet) Close

func (s *ClientSet) Close()

func (*ClientSet) Do

func (s *ClientSet) Do(fn func(client *http.Client) ClientState)

type ClientState

type ClientState uint8
const (
	Good ClientState = iota
	Bad
)

type Err

type Err struct {
	Pkg  string
	Info string
	Prev error
}

func (*Err) Error

func (e *Err) Error() string

func (*Err) Origin

func (e *Err) Origin() error

Jump to

Keyboard shortcuts

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