Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Args ¶
type Args struct { Method string `json:"method,omitempty"` // http method URL string `json:"url,omitempty"` Headers map[string][]string `json:"headers,omitempty"` Client string `json:"client,omitempty"` WSID string `json:"ws_id,omitempty"` Msg string `json:"msg,omitempty"` StatusCode int64 `json:"status_code,omitempty"` Exception string `json:"exception,omitempty"` Body []byte `json:"body,omitempty"` }
func MakeHTTPErrprRespArgs ¶
func (*Args) UrlTransform ¶
urlTransform replaces original url to bridging-base-url.
type Packet ¶
type Packet struct { CorrID string `json:"corr_id"` Method PacketMethod `json:"method"` Args *Args `json:"args"` }
type PacketMethod ¶
type PacketMethod string
const ( OPEN_WEBSOCKET_RESULT PacketMethod = "open_websocket_result" OPEN_WEBSOCKET PacketMethod = "open_websocket" CLOSE_WEBSOCKET_RESULT PacketMethod = "close_websocket_result" CLOSE_WEBSOCKET PacketMethod = "close_websocket" WEBSOCKET_MSG PacketMethod = "websocket_msg" HTTP_RESULT PacketMethod = "http_result" HTTP PacketMethod = "http" )
Click to show internal directories.
Click to hide internal directories.