Documentation ¶
Overview ¶
** description(""). ** copyright('Open_IM,www.Open_IM.io'). ** author("fg,Gordon@tuoyun.net"). ** time(2021/5/21 15:29).
Index ¶
- Variables
- func Init(rpcPort, wsPort int)
- func Run(promethuesPort int)
- func SetTokenKicked(userID string, platformID int, operationID string)
- type MaxSeqResp
- type MsgData
- type PullMessageResp
- type RPCServer
- func (r *RPCServer) GenPullSeqList(currentSeq uint32, operationID string, userID string) ([]uint32, error)
- func (r *RPCServer) GetSingleUserMsg(operationID string, currentMsgSeq uint32, userID string) []*sdk_ws.MsgData
- func (r *RPCServer) GetSingleUserMsgForPush(operationID string, msgData *sdk_ws.MsgData, pushToUserID string, ...) *sdk_ws.MsgDataList
- func (r *RPCServer) GetSingleUserMsgForPushPlatforms(operationID string, msgData *sdk_ws.MsgData, pushToUserID string, ...) map[int]*sdk_ws.MsgDataList
- func (r *RPCServer) GetUsersOnlineStatus(_ context.Context, req *pbRelay.GetUsersOnlineStatusReq) (*pbRelay.GetUsersOnlineStatusResp, error)
- func (r *RPCServer) KickUserOffline(_ context.Context, req *pbRelay.KickUserOfflineReq) (*pbRelay.KickUserOfflineResp, error)
- func (r *RPCServer) MultiTerminalLoginCheck(ctx context.Context, req *pbRelay.MultiTerminalLoginCheckReq) (*pbRelay.MultiTerminalLoginCheckResp, error)
- func (r *RPCServer) OnlineBatchPushOneMsg(_ context.Context, req *pbRelay.OnlineBatchPushOneMsgReq) (*pbRelay.OnlineBatchPushOneMsgResp, error)
- func (r *RPCServer) OnlinePushMsg(_ context.Context, in *pbRelay.OnlinePushMsgReq) (*pbRelay.OnlinePushMsgResp, error)
- func (r *RPCServer) SuperGroupBackgroundOnlinePush(_ context.Context, req *pbRelay.OnlineBatchPushOneMsgReq) (*pbRelay.OnlineBatchPushOneMsgResp, error)
- func (r *RPCServer) SuperGroupOnlineBatchPushOneMsg(_ context.Context, req *pbRelay.OnlineBatchPushOneMsgReq) (*pbRelay.OnlineBatchPushOneMsgResp, error)
- type Req
- type Resp
- type SeqData
- type SeqListData
- type UserConn
- type WServer
- func (ws *WServer) MultiTerminalLoginChecker(uid string, platformID int, newConn *UserConn, token string, ...)
- func (ws *WServer) MultiTerminalLoginCheckerWithLock(uid string, platformID int, token string, operationID string)
- func (ws *WServer) MultiTerminalLoginRemoteChecker(userID string, platformID int32, token string, operationID string)
- func (ws *WServer) SetWriteTimeout(conn *UserConn, timeout int)
- func (ws *WServer) SetWriteTimeoutWriteMsg(conn *UserConn, a int, msg []byte, timeout int) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxPullMsgNum = 100
Functions ¶
func SetTokenKicked ¶
Types ¶
type MaxSeqResp ¶
type MaxSeqResp struct {
MaxSeq int64 `json:"maxSeq"`
}
type MsgData ¶
type MsgData struct { PlatformID int32 `mapstructure:"platformID" validate:"required"` SessionType int32 `mapstructure:"sessionType" validate:"required"` MsgFrom int32 `mapstructure:"msgFrom" validate:"required"` ContentType int32 `mapstructure:"contentType" validate:"required"` RecvID string `mapstructure:"recvID" validate:"required"` ForceList []string `mapstructure:"forceList"` Content string `mapstructure:"content" validate:"required"` Options map[string]interface{} `mapstructure:"options" validate:"required"` ClientMsgID string `mapstructure:"clientMsgID" validate:"required"` OfflineInfo map[string]interface{} `mapstructure:"offlineInfo" validate:"required"` Ext map[string]interface{} `mapstructure:"ext"` }
type PullMessageResp ¶
type PullMessageResp struct { }
type RPCServer ¶
type RPCServer struct {
// contains filtered or unexported fields
}
func (*RPCServer) GenPullSeqList ¶
func (*RPCServer) GetSingleUserMsg ¶
func (*RPCServer) GetSingleUserMsgForPush ¶
func (*RPCServer) GetSingleUserMsgForPushPlatforms ¶
func (*RPCServer) GetUsersOnlineStatus ¶
func (r *RPCServer) GetUsersOnlineStatus(_ context.Context, req *pbRelay.GetUsersOnlineStatusReq) (*pbRelay.GetUsersOnlineStatusResp, error)
func (*RPCServer) KickUserOffline ¶
func (r *RPCServer) KickUserOffline(_ context.Context, req *pbRelay.KickUserOfflineReq) (*pbRelay.KickUserOfflineResp, error)
func (*RPCServer) MultiTerminalLoginCheck ¶
func (r *RPCServer) MultiTerminalLoginCheck(ctx context.Context, req *pbRelay.MultiTerminalLoginCheckReq) (*pbRelay.MultiTerminalLoginCheckResp, error)
func (*RPCServer) OnlineBatchPushOneMsg ¶
func (r *RPCServer) OnlineBatchPushOneMsg(_ context.Context, req *pbRelay.OnlineBatchPushOneMsgReq) (*pbRelay.OnlineBatchPushOneMsgResp, error)
func (*RPCServer) OnlinePushMsg ¶
func (r *RPCServer) OnlinePushMsg(_ context.Context, in *pbRelay.OnlinePushMsgReq) (*pbRelay.OnlinePushMsgResp, error)
func (*RPCServer) SuperGroupBackgroundOnlinePush ¶
func (r *RPCServer) SuperGroupBackgroundOnlinePush(_ context.Context, req *pbRelay.OnlineBatchPushOneMsgReq) (*pbRelay.OnlineBatchPushOneMsgResp, error)
func (*RPCServer) SuperGroupOnlineBatchPushOneMsg ¶
func (r *RPCServer) SuperGroupOnlineBatchPushOneMsg(_ context.Context, req *pbRelay.OnlineBatchPushOneMsgReq) (*pbRelay.OnlineBatchPushOneMsgResp, error)
type SeqListData ¶
type SeqListData struct {
SeqList []int64 `mapstructure:"seqList" validate:"required"`
}
type WServer ¶
type WServer struct {
// contains filtered or unexported fields
}
func (*WServer) MultiTerminalLoginChecker ¶
func (*WServer) MultiTerminalLoginCheckerWithLock ¶
func (*WServer) MultiTerminalLoginRemoteChecker ¶
func (*WServer) SetWriteTimeout ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.