Versions in this module Expand all Collapse all v1 v1.0.0 Aug 2, 2019 Changes in this version + func GetTextMsgData(uuId, msgId, message string) string + func GetTextMsgDataEnter(uuId, msgId, message string) string + func GetTextMsgDataExit(uuId, msgId, message string) string + type Head struct + Cmd string + Response *Response + Seq string + func NewResponseHead(seq string, cmd string, code int, codeMsg string, data interface{}) *Head + func (h *Head) String() (headStr string) + type HeartBeat struct + UserId string + type Login struct + AppId uint32 + ServiceToken string + UserId string + type Message struct + From string + Msg string + Target string + Type string + func NewTestMsg(from string, Msg string) (message *Message) + type PushMsg struct + Msg string + Seq string + Type string + Uuid uint64 + type Request struct + Cmd string + Data interface{} + Seq string + type Response struct + Code int + CodeMsg string + Data interface{} + func NewResponse(code int, codeMsg string, data interface{}) *Response + type UserOnline struct + AccIp string + AccPort string + AppId uint32 + ClientIp string + ClientPort string + DeviceInfo string + HeartbeatTime uint64 + IsLogoff bool + LogOutTime uint64 + LoginTime uint64 + Qua string + UserId string + func UserLogin(accIp, accPort string, appId uint32, userId string, addr string, ...) (userOnline *UserOnline) + func (u *UserOnline) Heartbeat(currentTime uint64) + func (u *UserOnline) IsOnline() (online bool) + func (u *UserOnline) LogOut() + func (u *UserOnline) UserIsLocal(localIp, localPort string) (result bool) Incompatible versions in this module v2.0.0+incompatible Aug 4, 2019