Documentation
¶
Index ¶
- Constants
- Variables
- func HandlerLookup(w http.ResponseWriter, req *http.Request)
- type Dialer
- type Pool
- func (pool *Pool) Add(tun tunnel.Tunnel)
- func (pool *Pool) CutAll()
- func (pool *Pool) GetSize() int
- func (pool *Pool) GetTunnels() (tuns TunSlice)
- func (pool *Pool) HandlerCutoff(w http.ResponseWriter, req *http.Request)
- func (pool *Pool) HandlerMain(w http.ResponseWriter, req *http.Request)
- func (pool *Pool) Register(mux *http.ServeMux)
- func (pool *Pool) Remove(tun tunnel.Tunnel) (err error)
- type Server
- type TunSlice
Constants ¶
View Source
const ( BALANCE_INTERVAL = 60 DIAL_RETRY = 2 AUTH_TIMEOUT = 10 )
Variables ¶
Functions ¶
func HandlerLookup ¶
func HandlerLookup(w http.ResponseWriter, req *http.Request)
Types ¶
type Dialer ¶
func (*Dialer) AddDialerCreator ¶
func (dialer *Dialer) AddDialerCreator(orig *tunnel.DialerCreator)
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) GetTunnels ¶
func (*Pool) HandlerCutoff ¶
func (pool *Pool) HandlerCutoff(w http.ResponseWriter, req *http.Request)
func (*Pool) HandlerMain ¶
func (pool *Pool) HandlerMain(w http.ResponseWriter, req *http.Request)
Click to show internal directories.
Click to hide internal directories.