Documentation
¶
Overview ¶
Package proto defines tunnel client server communication protocol.
Index ¶
Constants ¶
View Source
const ( // ControlPath is http.Handler url path for control connection. ControlPath = "/_controlPath/" // ClientIdentifierHeader is header carrying information about tunnel identifier. ClientIdentifierHeader = "X-KTunnel-Identifier" // Connected is message sent by server to client when control connection was established. Connected = "200 Connected to Tunnel" // HandshakeRequest is hello message sent by client to server. HandshakeRequest = "controlHandshake" // HandshakeResponse is response to HandshakeRequest sent by server to client. HandshakeResponse = "controlOk" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ControlMessage ¶
type ControlMessage struct { Action Action `json:"action"` Protocol Type `json:"transportProtocol"` LocalPort int `json:"localPort"` }
ControlMessage is sent from server to client to establish tunneled connection.
Click to show internal directories.
Click to hide internal directories.