Documentation ¶
Index ¶
- func GenMsgIncr(userID string) string
- type GeneralWsReq
- type GeneralWsResp
- type MsgSync
- type PostApi
- func (p *PostApi) Post2UnmarshalRespReturn(url string, req interface{}, output interface{}) error
- func (p *PostApi) PostFatalCallback(callback open_im_sdk_callback.Base, url string, data interface{}, ...)
- func (p *PostApi) PostFatalCallbackPenetrate(callback open_im_sdk_callback.Base, url string, data interface{}, ...)
- func (p *PostApi) PostReturn(url string, req interface{}, output interface{}) error
- func (p *PostApi) PostReturnWithTimeOut(url string, req interface{}, output interface{}, timeOut time.Duration) error
- type ReadDiffusionGroupMsgSync
- type SelfMsgSync
- type SelfMsgSyncLatestModel
- type SeqPair
- type SuperGroupMsgSync
- type Ws
- func (w *Ws) DoWSSignal(wsResp GeneralWsResp) error
- func (w *Ws) Logout(operationID string)
- func (w *Ws) ReadData()
- func (w *Ws) SendReqTest(m proto.Message, reqIdentifier int32, timeout int, ...) bool
- func (w *Ws) SendReqWaitResp(m proto.Message, reqIdentifier int32, timeout, retryTimes int, ...) (*GeneralWsResp, error)
- func (w *Ws) SendSignalingReqWaitResp(req *server_api_params.SignalReq, operationID string) (*server_api_params.SignalResp, error)
- func (w *Ws) SignalingWaitPush(inviterUserID, inviteeUserID, roomID string, timeout int32, operationID string) (*server_api_params.SignalReq, error)
- func (w *Ws) WaitResp(ch chan GeneralWsResp, timeout int, operationID string, ...) (*GeneralWsResp, error)
- func (w *Ws) WaitTest(ch chan GeneralWsResp, timeout int, operationID string, ...) bool
- type WsConn
- func (u *WsConn) CloseConn(operationID string) error
- func (u *WsConn) IsFatalError(err error) bool
- func (u *WsConn) IsInterruptReconnection() bool
- func (u *WsConn) IsReadTimeout(err error) bool
- func (u *WsConn) IsWriteTimeout(err error) bool
- func (u *WsConn) Lock()
- func (u *WsConn) LoginStatus() int32
- func (u *WsConn) ReConn(operationID string) (*websocket.Conn, error, bool, bool)
- func (u *WsConn) SendPingMsg() error
- func (u *WsConn) SetLoginStatus(loginState int32)
- func (u *WsConn) SetReadTimeout(timeout int) error
- func (u *WsConn) SetWriteTimeout(timeout int) error
- func (u *WsConn) Unlock()
- type WsRespAsyn
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenMsgIncr ¶
Types ¶
type GeneralWsReq ¶
type GeneralWsResp ¶
type MsgSync ¶
type MsgSync struct { db_interface.DataBase *Ws LoginUserID string PushMsgAndMaxSeqCh chan common.Cmd2Value // contains filtered or unexported fields }
func NewMsgSync ¶
type PostApi ¶
type PostApi struct {
// contains filtered or unexported fields
}
no share
func NewPostApi ¶
func (*PostApi) Post2UnmarshalRespReturn ¶
func (*PostApi) PostFatalCallback ¶
func (p *PostApi) PostFatalCallback(callback open_im_sdk_callback.Base, url string, data interface{}, output interface{}, operationID string)
func (*PostApi) PostFatalCallbackPenetrate ¶
func (p *PostApi) PostFatalCallbackPenetrate(callback open_im_sdk_callback.Base, url string, data interface{}, output interface{}, operationID string)
func (*PostApi) PostReturn ¶
type ReadDiffusionGroupMsgSync ¶
type ReadDiffusionGroupMsgSync struct { db_interface.DataBase *Ws Group2SeqMaxNeedSync map[string]uint32 //需要同步的seq 可能来自于心跳max,也可能来自于push Group2SeqMaxSynchronized map[string]uint32 //已经同步的最大seq SuperGroupIDList []string Group2SyncMsgFinished map[string]bool // contains filtered or unexported fields }
func NewReadDiffusionGroupMsgSync ¶
func NewReadDiffusionGroupMsgSync(dataBase db_interface.DataBase, ws *Ws, loginUserID string, conversationCh chan common.Cmd2Value, joinedSuperGroupCh chan common.Cmd2Value) *ReadDiffusionGroupMsgSync
func (*ReadDiffusionGroupMsgSync) TriggerCmdNewMsgCome ¶
func (m *ReadDiffusionGroupMsgSync) TriggerCmdNewMsgCome(msgList []*server_api_params.MsgData, operationID string, loginSync int)
type SelfMsgSync ¶
type SelfMsgSync struct { db_interface.DataBase *Ws // contains filtered or unexported fields }
func NewSelfMsgSync ¶
func NewSelfMsgSync(dataBase db_interface.DataBase, ws *Ws, loginUserID string, conversationCh chan common.Cmd2Value) *SelfMsgSync
type SelfMsgSyncLatestModel ¶
type SuperGroupMsgSync ¶
type Ws ¶
type Ws struct { *WsRespAsyn *WsConn JustOnceFlag bool IsBackground bool // contains filtered or unexported fields }
func (*Ws) DoWSSignal ¶
func (w *Ws) DoWSSignal(wsResp GeneralWsResp) error
func (*Ws) SendReqTest ¶
func (*Ws) SendReqWaitResp ¶
func (*Ws) SendSignalingReqWaitResp ¶
func (w *Ws) SendSignalingReqWaitResp(req *server_api_params.SignalReq, operationID string) (*server_api_params.SignalResp, error)
func (*Ws) SignalingWaitPush ¶
func (*Ws) WaitResp ¶
func (w *Ws) WaitResp(ch chan GeneralWsResp, timeout int, operationID string, connSend *websocket.Conn) (*GeneralWsResp, error)
type WsConn ¶
type WsConn struct { IsCompression bool ConversationCh chan common.Cmd2Value // contains filtered or unexported fields }
func NewWsConn ¶
func NewWsConn(listener open_im_sdk_callback.OnConnListener, token string, loginUserID string, isCompression bool, conversationCh chan common.Cmd2Value) *WsConn
func (*WsConn) IsFatalError ¶
func (*WsConn) IsInterruptReconnection ¶
func (*WsConn) IsReadTimeout ¶
func (*WsConn) IsWriteTimeout ¶
func (*WsConn) LoginStatus ¶
func (*WsConn) SendPingMsg ¶
func (*WsConn) SetLoginStatus ¶
func (*WsConn) SetReadTimeout ¶
func (*WsConn) SetWriteTimeout ¶
type WsRespAsyn ¶
type WsRespAsyn struct {
// contains filtered or unexported fields
}
func NewWsRespAsyn ¶
func NewWsRespAsyn() *WsRespAsyn
func (*WsRespAsyn) AddCh ¶
func (u *WsRespAsyn) AddCh(userID string) (string, chan GeneralWsResp)
func (*WsRespAsyn) AddChByIncr ¶
func (u *WsRespAsyn) AddChByIncr(msgIncr string) chan GeneralWsResp
func (*WsRespAsyn) DelCh ¶
func (u *WsRespAsyn) DelCh(msgIncr string)
func (*WsRespAsyn) GetCh ¶
func (u *WsRespAsyn) GetCh(msgIncr string) chan GeneralWsResp
Click to show internal directories.
Click to hide internal directories.