Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ErrorMessage ¶
type ErrorMessage struct {
Error string `json:"error"`
}
type HTTPRequest ¶
type HTTPResponse ¶
type Message ¶
type Message struct { Type MessageType `json:"type"` Payload interface{} `json:"payload,omitempty"` }
type MessageType ¶
type MessageType string
const ( MessageTypePing MessageType = "ping" MessageTypePong MessageType = "pong" MessageTypeTunnelReq MessageType = "tunnel_req" MessageTypeTunnelResp MessageType = "tunnel_resp" MessageTypeHTTPRequest MessageType = "http_request" MessageTypeHTTPResponse MessageType = "http_response" MessageTypeError MessageType = "error" )
type TunnelRequest ¶
type TunnelResponse ¶
type TunnelResponse struct { // URL is the public URL of the tunnel to the local port URL string `json:"url"` }
Click to show internal directories.
Click to hide internal directories.