MCPcopy Index your code
hub / github.com/koding/kite / RegisterToTunnel

Method RegisterToTunnel

kontrolclient.go:398–406  ·  view source on GitHub ↗

RegisterToTunnel finds a tunnel proxy kite by asking kontrol then registers itself on proxy. On error, retries forever. On every successful registration, it sends the proxied URL to the registerChan channel. There is no register URL needed because the Tunnel Proxy automatically gets the IP from tunn

()

Source from the content-addressed store, hash-verified

396// no register URL needed because the Tunnel Proxy automatically gets the IP
397// from tunneling. This is a blocking function.
398func (k *Kite) RegisterToTunnel() {
399 query := &protocol.KontrolQuery{
400 Username: k.Config.KontrolUser,
401 Environment: k.Config.Environment,
402 Name: "tunnelproxy",
403 }
404
405 k.RegisterToProxy(nil, query)
406}
407
408// RegisterToProxy is just like RegisterForever but registers the given URL
409// to kontrol over a kite-proxy. A Kiteproxy is a reverseproxy that can be used

Callers

nothing calls this directly

Calls 1

RegisterToProxyMethod · 0.95

Tested by

no test coverage detected