Documentation ¶
Index ¶
Constants ¶
View Source
const ( TypeRequest = "request" // Main to sub TypeResult = "result" // Sub to main )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigureRequestArgs ¶
type ConfigureRequestArgs struct { // Fields added in v0.2.0 Me net.IP `json:"me"` // Required Forwards []Forward `json:"forwards,omitempty"` Others []IPPortProto `json:"others,omitempty"` // Fields added in v0.4.0 HostnameMap map[string]net.IP `json:"hostnameMap,omitempty"` // hostname -> ip HTTP HTTP `json:"http,omitempty"` SOCKS SOCKS `json:"socks,omitempty"` Loopback Loopback `json:"loopback,omitempty"` StateDir StateDir `json:"stateDir,omitempty"` WriteEtcHosts bool `json:"writeEtcHosts,omitempty"` }
type ConfigureResultData ¶
type IPPortProto ¶
type Message ¶
type Message struct { Type Type `json:"type"` // Required Body json.RawMessage `json:"body"` // Request or Result }
type Request ¶
type Request struct { ID int `json:"id"` // Required Op Op `json:"op"` // Required Args json.RawMessage `json:"args,omitempty"` }
type Result ¶
type Result struct { RequestID int `json:"request_id"` // Required Op Op `json:"op"` // Required Error json.RawMessage `json:"error,omitempty"` Data json.RawMessage `json:"data,omitempty"` }
Click to show internal directories.
Click to hide internal directories.