kite: github.com/koding/kite/tunnelproxy Index | Files | Directories

package tunnelproxy

import "github.com/koding/kite/tunnelproxy"

Package tunnelproxy implements a reverse-proxy for kites behind firewall or NAT.

Index

Package Files

proxy.go tunnel.go

Constants

const (
    ProxyVersion = "0.0.2"
)

Variables

var (
    DefaultPort       = 3999
    DefaultPublicHost = "localhost:3999"
)

func JoinStreams Uses

func JoinStreams(local, remote io.ReadWriteCloser) chan error

type PrivateKite Uses

type PrivateKite struct {
    *kite.Client
    // contains filtered or unexported fields
}

type Proxy Uses

type Proxy struct {
    Kite *kite.Kite

    TLSConfig *tls.Config

    // If givent it must match the domain in certificate.
    PublicHost string

    RegisterToKontrol bool
    // contains filtered or unexported fields
}

func New Uses

func New(conf *config.Config, version, pubKey, privKey string) *Proxy

func (*Proxy) Close Uses

func (p *Proxy) Close()

func (*Proxy) CloseNotify Uses

func (s *Proxy) CloseNotify() chan bool

func (*Proxy) ReadyNotify Uses

func (s *Proxy) ReadyNotify() chan bool

func (*Proxy) Run Uses

func (p *Proxy) Run()

func (*Proxy) Start Uses

func (p *Proxy) Start()

type SessionReadWriteCloser Uses

type SessionReadWriteCloser struct {
    // contains filtered or unexported fields
}

func (SessionReadWriteCloser) Close Uses

func (s SessionReadWriteCloser) Close() error

func (SessionReadWriteCloser) Read Uses

func (s SessionReadWriteCloser) Read(b []byte) (int, error)

func (SessionReadWriteCloser) Write Uses

func (s SessionReadWriteCloser) Write(b []byte) (int, error)

type Tunnel Uses

type Tunnel struct {
    // contains filtered or unexported fields
}

func (*Tunnel) Close Uses

func (t *Tunnel) Close()

func (*Tunnel) CloseNotify Uses

func (t *Tunnel) CloseNotify() chan bool

func (*Tunnel) Run Uses

func (t *Tunnel) Run(remoteConn sockjs.Session)

func (*Tunnel) StartNotify Uses

func (t *Tunnel) StartNotify() chan bool

Directories

PathSynopsis
tunnelproxy

Package tunnelproxy imports 15 packages (graph) and is imported by 11 packages. Updated 2017-03-21. Refresh now. Tools for package owners.