Documentation ¶
Index ¶
Constants ¶
View Source
const ( WsUserID = "sendID" OperationID = "operationID" PlatformID = "platformID" )
View Source
const ( RESP_OP_TYPE = "response" MQ_MSG_TYPE = "mqMessage" HEART_CONFIG_TYPE = "heartConfig" CONN_CMD = "connect" SUB_CMD = "subscribe" UNSUB_CMD = "unsubscribe" HEART_CMD = "heart" )
Variables ¶
This section is empty.
Functions ¶
func CloseAgent ¶
Types ¶
type JsCore ¶
type JsInterface ¶
type JsInterface interface { //recv消息 RecvMsg() chan interface{} //todo your sturct,error or response //send消息 SendMsg(interface{}) error //关闭循环,并释放资源 Destroy() }
type MActor ¶
type MActor interface { //recv消息 ProcessRecvMsg(interface{}) error //关闭循环,并释放资源 Destroy() // contains filtered or unexported methods }
type MActorIm ¶
type MActorIm struct { SessionId string ReceivMsgChan chan interface{} //接收网络层数据通道 // contains filtered or unexported fields }
func (*MActorIm) ProcessRecvMsg ¶
type ParamStru ¶
type ParamStru struct { UrlPath string Token string SessionId string UserId int64 GroupId int64 OrgId int64 OrgName string }
func (*ParamStru) GetOperationID ¶
func (*ParamStru) GetPlatformID ¶
type ResponseSt ¶
type ResponseSt struct { Type string `json:"type"` //"response" or "mqMessage" or "heartConfig" Cmd string `json:"cmd"` //"connect" "subscribe" "unsubscribe" Success bool `json:"success"` // ErrMsg string `json:"errMsg"` RequestId string `json:"requestId"` Topic string `json:"topic"` Extra string `json:"extra"` MsgTimeStamp int64 `json:"msgTimeStamp"` MsgSeqId int64 `json:"msgSeqId"` Data string `json:"data"` Rate int64 `json:"rate"` }
Click to show internal directories.
Click to hide internal directories.