manager

package
v0.0.0-...-5b2f620 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2015 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

manager a cluster of proxy

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleCheck

func HandleCheck(rw http.ResponseWriter, req *http.Request)

func HandleList

func HandleList(rw http.ResponseWriter, req *http.Request)

func HandleRegister

func HandleRegister(rw http.ResponseWriter, req *http.Request)

func HandleSelect

func HandleSelect(rw http.ResponseWriter, req *http.Request)

func Register

func Register(link string)

Types

type Proxy

type Proxy struct {
	Link          string
	LastCheckOKTm time.Time
	LastCheckOK   bool
	TotalSecs     float64
	TotalWeight   float64
	Ticker        *time.Ticker
}

func Select

func Select() *Proxy

func (*Proxy) AveSecs

func (p *Proxy) AveSecs() float64

func (*Proxy) MarshalJSON

func (p *Proxy) MarshalJSON() ([]byte, error)

Jump to

Keyboard shortcuts

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