Documentation ¶
Index ¶
- func AddFrontendWebsocket(conn *app.FrontendWebsocket)
- func ConnectFrontend(num int, options ...bool) *websocket.Conn
- func ConsumeFrontendWebsocketChan()
- func ConsumeFrontendWebsocketDelChan()
- func ConsumeReplyMessageQueue(num int)
- func ConsumeRequestMessageChan()
- func ConsumeResponseChanMapActionChan()
- func DelFrontendWebsocket(connId string)
- func DisconnectFrontend()
- func HttpHandler(c *gin.Context)
- func ProxyRequest(num int, request app.Request)
- func ReadRequest(num int)
- func ReceiveProxyResponse(message []byte)
- func ReplyError(num int, requestId string, err error)
- func ReplyResponse(num int, requestId string, response *http.Response)
- func SendHeartbeat(num int)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddFrontendWebsocket ¶ added in v1.1.1
func AddFrontendWebsocket(conn *app.FrontendWebsocket)
添加 Websocket 连接到全局
func ConnectFrontend ¶ added in v1.1.1
连接到 Frontend
func ConsumeFrontendWebsocketChan ¶ added in v1.1.1
func ConsumeFrontendWebsocketChan()
消费消息队列:添加 Frontend 和 Proxy 的连接
func ConsumeFrontendWebsocketDelChan ¶ added in v1.1.1
func ConsumeFrontendWebsocketDelChan()
消费消息队列:删除 Frontend 和 Proxy 的连接
func ConsumeReplyMessageQueue ¶ added in v1.1.1
func ConsumeReplyMessageQueue(num int)
消费消息队列:待回复的消息
func ConsumeResponseChanMapActionChan ¶
func ConsumeResponseChanMapActionChan()
消费消息队列:对 ResponseChanMap 的操作
func DelFrontendWebsocket ¶ added in v1.1.1
func DelFrontendWebsocket(connId string)
从全局移除 Websocket 连接
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.