MCPcopy Create free account
hub / github.com/koding/kite / Tunnel

Struct Tunnel

tunnelproxy/tunnel.go:10–17  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8)
9
10type Tunnel struct {
11 id uint64 // key in kites's tunnels map
12 localConn sockjs.Session // conn to local kite
13 startChan chan bool // to signal started state
14 closeChan chan bool // to signal closed state
15 closed bool // to prevent closing closeChan again
16 closedMutex sync.Mutex // for protection of closed field
17}
18
19func (t *Tunnel) Close() {
20 t.closedMutex.Lock()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected