ws_local_server

package
v0.0.0-...-9bd7499 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 20, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Overview

** description(""). ** copyright('open-im,www.open-im.io'). ** author("fg,Gordon@tuoyun.net"). ** time(2021/9/8 15:39).

** description(""). ** copyright('open-im,www.open-im.io'). ** author("fg,Gordon@tuoyun.net"). ** time(2021/9/8 14:54).

** description(""). ** copyright('open-im,www.open-im.io'). ** author("fg,Gordon@tuoyun.net"). ** time(2021/9/8 14:42).

Index

Constants

View Source
const (
	StatusContinue           = 100 // RFC 7231, 6.2.1
	StatusSwitchingProtocols = 101 // RFC 7231, 6.2.2
	StatusProcessing         = 102 // RFC 2518, 10.1
	StatusEarlyHints         = 103 // RFC 8297

	StatusOK                   = 200 // RFC 7231, 6.3.1
	StatusCreated              = 201 // RFC 7231, 6.3.2
	StatusAccepted             = 202 // RFC 7231, 6.3.3
	StatusNonAuthoritativeInfo = 203 // RFC 7231, 6.3.4
	StatusNoContent            = 204 // RFC 7231, 6.3.5
	StatusResetContent         = 205 // RFC 7231, 6.3.6
	StatusPartialContent       = 206 // RFC 7233, 4.1
	StatusMultiStatus          = 207 // RFC 4918, 11.1
	StatusAlreadyReported      = 208 // RFC 5842, 7.1
	StatusIMUsed               = 226 // RFC 3229, 10.4.1

	StatusMultipleChoices  = 300 // RFC 7231, 6.4.1
	StatusMovedPermanently = 301 // RFC 7231, 6.4.2
	StatusFound            = 302 // RFC 7231, 6.4.3
	StatusSeeOther         = 303 // RFC 7231, 6.4.4
	StatusNotModified      = 304 // RFC 7232, 4.1
	StatusUseProxy         = 305 // RFC 7231, 6.4.5

	StatusTemporaryRedirect = 307 // RFC 7231, 6.4.7
	StatusPermanentRedirect = 308 // RFC 7538, 3

	StatusBadRequest                   = 400 // RFC 7231, 6.5.1
	StatusUnauthorized                 = 401 // RFC 7235, 3.1
	StatusPaymentRequired              = 402 // RFC 7231, 6.5.2
	StatusForbidden                    = 403 // RFC 7231, 6.5.3
	StatusNotFound                     = 404 // RFC 7231, 6.5.4
	StatusMethodNotAllowed             = 405 // RFC 7231, 6.5.5
	StatusNotAcceptable                = 406 // RFC 7231, 6.5.6
	StatusProxyAuthRequired            = 407 // RFC 7235, 3.2
	StatusRequestTimeout               = 408 // RFC 7231, 6.5.7
	StatusConflict                     = 409 // RFC 7231, 6.5.8
	StatusGone                         = 410 // RFC 7231, 6.5.9
	StatusLengthRequired               = 411 // RFC 7231, 6.5.10
	StatusPreconditionFailed           = 412 // RFC 7232, 4.2
	StatusRequestEntityTooLarge        = 413 // RFC 7231, 6.5.11
	StatusRequestURITooLong            = 414 // RFC 7231, 6.5.12
	StatusUnsupportedMediaType         = 415 // RFC 7231, 6.5.13
	StatusRequestedRangeNotSatisfiable = 416 // RFC 7233, 4.4
	StatusExpectationFailed            = 417 // RFC 7231, 6.5.14
	StatusTeapot                       = 418 // RFC 7168, 2.3.3
	StatusMisdirectedRequest           = 421 // RFC 7540, 9.1.2
	StatusUnprocessableEntity          = 422 // RFC 4918, 11.2
	StatusLocked                       = 423 // RFC 4918, 11.3
	StatusFailedDependency             = 424 // RFC 4918, 11.4
	StatusTooEarly                     = 425 // RFC 8470, 5.2.
	StatusUpgradeRequired              = 426 // RFC 7231, 6.5.15
	StatusPreconditionRequired         = 428 // RFC 6585, 3
	StatusTooManyRequests              = 429 // RFC 6585, 4
	StatusRequestHeaderFieldsTooLarge  = 431 // RFC 6585, 5
	StatusUnavailableForLegalReasons   = 451 // RFC 7725, 3

	StatusInternalServerError           = 500 // RFC 7231, 6.6.1
	StatusNotImplemented                = 501 // RFC 7231, 6.6.2
	StatusBadGateway                    = 502 // RFC 7231, 6.6.3
	StatusServiceUnavailable            = 503 // RFC 7231, 6.6.4
	StatusGatewayTimeout                = 504 // RFC 7231, 6.6.5
	StatusHTTPVersionNotSupported       = 505 // RFC 7231, 6.6.6
	StatusVariantAlsoNegotiates         = 506 // RFC 2295, 8.1
	StatusInsufficientStorage           = 507 // RFC 4918, 11.5
	StatusLoopDetected                  = 508 // RFC 5842, 7.2
	StatusNotExtended                   = 510 // RFC 2774, 7
	StatusNetworkAuthenticationRequired = 511 // RFC 6585, 6

	StatusBadParameter         = 1001
	StatusLoginPending         = 1002
	StatusNoLogin              = 1003
	StatusResourceNotCompleted = 1004
	StatusNotSupportFunction   = 1005
)
View Source
const CMDLogin = "Login"
View Source
const POINTNUM = 10
View Source
const WriteTimeoutSeconds = 30

Variables

View Source
var ConfigSvr string
View Source
var UserRouteMap map[string]RefRouter
View Source
var UserRouteRwLock sync.RWMutex

Functions

func DelUserRouter

func DelUserRouter(uid string, operationID string)

func InitServer

func InitServer(config *sdk_struct.IMConfig)

func SendOneConnMessage

func SendOneConnMessage(data interface{}, conn *UserConn)

func SendOneUserMessage

func SendOneUserMessage(data interface{}, uid string)

listener

func SendOneUserMessageForTest

func SendOneUserMessageForTest(data interface{}, uid string)

func StatusText

func StatusText(code int) string

StatusText returns a text for the HTTP status code. It returns the empty string if the code is unknown.

Types

type AddAdvancedMsgListenerCallback

type AddAdvancedMsgListenerCallback struct {
	// contains filtered or unexported fields
}

func (*AddAdvancedMsgListenerCallback) OnNewRecvMessageRevoked

func (a *AddAdvancedMsgListenerCallback) OnNewRecvMessageRevoked(messageRevoked string)

func (*AddAdvancedMsgListenerCallback) OnRecvC2CReadReceipt

func (a *AddAdvancedMsgListenerCallback) OnRecvC2CReadReceipt(msgReceiptList string)

func (*AddAdvancedMsgListenerCallback) OnRecvGroupReadReceipt

func (a *AddAdvancedMsgListenerCallback) OnRecvGroupReadReceipt(groupMsgReceiptList string)

func (*AddAdvancedMsgListenerCallback) OnRecvMessageRevoked

func (a *AddAdvancedMsgListenerCallback) OnRecvMessageRevoked(msgId string)

func (*AddAdvancedMsgListenerCallback) OnRecvNewMessage

func (a *AddAdvancedMsgListenerCallback) OnRecvNewMessage(message string)

type BaseSuccessFailed

type BaseSuccessFailed struct {
	// contains filtered or unexported fields
}

func (*BaseSuccessFailed) OnError

func (b *BaseSuccessFailed) OnError(errCode int32, errMsg string)

func (*BaseSuccessFailed) OnSuccess

func (b *BaseSuccessFailed) OnSuccess(data string)

type BatchMsgListenerCallback

type BatchMsgListenerCallback struct {
	// contains filtered or unexported fields
}

func (*BatchMsgListenerCallback) OnRecvNewMessages

func (b *BatchMsgListenerCallback) OnRecvNewMessages(messageList string)

type ChanMsg

type ChanMsg struct {
	// contains filtered or unexported fields
}

type ConversationCallback

type ConversationCallback struct {
	// contains filtered or unexported fields
}

func (*ConversationCallback) OnConversationChanged

func (c *ConversationCallback) OnConversationChanged(conversationList string)

func (*ConversationCallback) OnNewConversation

func (c *ConversationCallback) OnNewConversation(conversationList string)

func (*ConversationCallback) OnSyncServerFailed

func (c *ConversationCallback) OnSyncServerFailed()

func (*ConversationCallback) OnSyncServerFinish

func (c *ConversationCallback) OnSyncServerFinish()

func (*ConversationCallback) OnSyncServerStart

func (c *ConversationCallback) OnSyncServerStart()

func (*ConversationCallback) OnTotalUnreadMessageCountChanged

func (c *ConversationCallback) OnTotalUnreadMessageCountChanged(totalUnreadCount int32)

type EventData

type EventData struct {
	Event       string `json:"event"`
	ErrCode     int32  `json:"errCode"`
	ErrMsg      string `json:"errMsg"`
	Data        string `json:"data"`
	OperationID string `json:"operationID"`
}

type FriendCallback

type FriendCallback struct {
	// contains filtered or unexported fields
}

func (*FriendCallback) OnBlackAdded

func (f *FriendCallback) OnBlackAdded(userInfo string)

func (*FriendCallback) OnBlackDeleted

func (f *FriendCallback) OnBlackDeleted(friendInfo string)

func (*FriendCallback) OnFriendAdded

func (f *FriendCallback) OnFriendAdded(friendInfo string)

func (*FriendCallback) OnFriendApplicationAccepted

func (f *FriendCallback) OnFriendApplicationAccepted(applyUserInfo string)

func (*FriendCallback) OnFriendApplicationAdded

func (f *FriendCallback) OnFriendApplicationAdded(applyUserInfo string)

func (*FriendCallback) OnFriendApplicationDeleted

func (f *FriendCallback) OnFriendApplicationDeleted(applyUserInfo string)

func (*FriendCallback) OnFriendApplicationRejected

func (f *FriendCallback) OnFriendApplicationRejected(applyUserInfo string)

func (*FriendCallback) OnFriendDeleted

func (f *FriendCallback) OnFriendDeleted(friendInfo string)

func (*FriendCallback) OnFriendInfoChanged

func (f *FriendCallback) OnFriendInfoChanged(userInfo string)

type GroupCallback

type GroupCallback struct {
	// contains filtered or unexported fields
}

func (*GroupCallback) OnGroupApplicationAccepted

func (g *GroupCallback) OnGroupApplicationAccepted(groupApplication string)

func (*GroupCallback) OnGroupApplicationAdded

func (g *GroupCallback) OnGroupApplicationAdded(groupApplication string)

func (*GroupCallback) OnGroupApplicationDeleted

func (g *GroupCallback) OnGroupApplicationDeleted(groupApplication string)

func (*GroupCallback) OnGroupApplicationRejected

func (g *GroupCallback) OnGroupApplicationRejected(groupApplication string)

func (*GroupCallback) OnGroupInfoChanged

func (g *GroupCallback) OnGroupInfoChanged(groupInfo string)

func (*GroupCallback) OnGroupMemberAdded

func (g *GroupCallback) OnGroupMemberAdded(groupMemberInfo string)

func (*GroupCallback) OnGroupMemberDeleted

func (g *GroupCallback) OnGroupMemberDeleted(groupMemberInfo string)

func (*GroupCallback) OnGroupMemberInfoChanged

func (g *GroupCallback) OnGroupMemberInfoChanged(groupMemberInfo string)

func (*GroupCallback) OnJoinedGroupAdded

func (g *GroupCallback) OnJoinedGroupAdded(groupInfo string)

func (*GroupCallback) OnJoinedGroupDeleted

func (g *GroupCallback) OnJoinedGroupDeleted(groupInfo string)

type InitCallback

type InitCallback struct {
	// contains filtered or unexported fields
}

func (*InitCallback) OnConnectFailed

func (i *InitCallback) OnConnectFailed(ErrCode int32, ErrMsg string)

func (*InitCallback) OnConnectSuccess

func (i *InitCallback) OnConnectSuccess()

func (*InitCallback) OnConnecting

func (i *InitCallback) OnConnecting()

func (*InitCallback) OnKickedOffline

func (i *InitCallback) OnKickedOffline()

func (*InitCallback) OnSelfInfoUpdated

func (i *InitCallback) OnSelfInfoUpdated(userInfo string)

func (*InitCallback) OnUserTokenExpired

func (i *InitCallback) OnUserTokenExpired()

type OrganizationCallback

type OrganizationCallback struct {
	// contains filtered or unexported fields
}

func (*OrganizationCallback) OnOrganizationUpdated

func (g *OrganizationCallback) OnOrganizationUpdated()

type RefRouter

type RefRouter struct {
	// contains filtered or unexported fields
}

func GenUserRouterNoLock

func GenUserRouterNoLock(uid string, batchMsg int, operationID string) *RefRouter

type Req

type Req struct {
	ReqFuncName string `json:"reqFuncName" `
	OperationID string `json:"operationID"`
	Data        string `json:"data"`
	UserID      string `json:"userID"`
	Batch       int    `json:"batchMsg"`
}

type SendCallback

type SendCallback struct {
	BaseSuccessFailed
	// contains filtered or unexported fields
}

func (*SendCallback) OnProgress

func (s *SendCallback) OnProgress(progress int)

type SignalingCallback

type SignalingCallback struct {
	// contains filtered or unexported fields
}

func (*SignalingCallback) OnHangUp

func (s *SignalingCallback) OnHangUp(hangUpCallback string)

func (*SignalingCallback) OnInvitationCancelled

func (s *SignalingCallback) OnInvitationCancelled(invitationCancelled string)

func (*SignalingCallback) OnInvitationTimeout

func (s *SignalingCallback) OnInvitationTimeout(invitationTimeout string)

func (*SignalingCallback) OnInviteeAccepted

func (s *SignalingCallback) OnInviteeAccepted(inviteeAccepted string)

func (*SignalingCallback) OnInviteeAcceptedByOtherDevice

func (s *SignalingCallback) OnInviteeAcceptedByOtherDevice(inviteeAcceptedCallback string)

func (*SignalingCallback) OnInviteeRejected

func (s *SignalingCallback) OnInviteeRejected(inviteeRejected string)

func (*SignalingCallback) OnInviteeRejectedByOtherDevice

func (s *SignalingCallback) OnInviteeRejectedByOtherDevice(inviteeRejectedCallback string)

func (*SignalingCallback) OnReceiveNewInvitation

func (s *SignalingCallback) OnReceiveNewInvitation(receiveNewInvitation string)

func (*SignalingCallback) OnRoomParticipantConnected

func (s *SignalingCallback) OnRoomParticipantConnected(onRoomParticipantConnected string)

func (*SignalingCallback) OnRoomParticipantDisconnected

func (s *SignalingCallback) OnRoomParticipantDisconnected(onRoomParticipantDisconnected string)

type UserCallback

type UserCallback struct {
	// contains filtered or unexported fields
}

func (*UserCallback) OnSelfInfoUpdated

func (u *UserCallback) OnSelfInfoUpdated(userInfo string)

type UserConn

type UserConn struct {
	*websocket.Conn
	// contains filtered or unexported fields
}

type WServer

type WServer struct {
	// contains filtered or unexported fields
}
var (
	WS WServer
)

func (*WServer) DoLogin

func (ws *WServer) DoLogin(m Req, conn *UserConn)

func (*WServer) OnInit

func (ws *WServer) OnInit(wsPort int)

func (*WServer) Run

func (ws *WServer) Run()

type WorkMomentsCallback

type WorkMomentsCallback struct {
	// contains filtered or unexported fields
}

func (*WorkMomentsCallback) OnRecvNewNotification

func (w *WorkMomentsCallback) OnRecvNewNotification()

type WsFuncRouter

type WsFuncRouter struct {
	// contains filtered or unexported fields
}

func (*WsFuncRouter) AcceptFriendApplication

func (wsRouter *WsFuncRouter) AcceptFriendApplication(params string, operationID string)

1

func (*WsFuncRouter) AcceptGroupApplication

func (wsRouter *WsFuncRouter) AcceptGroupApplication(input, operationID string)

func (*WsFuncRouter) AddBlack

func (wsRouter *WsFuncRouter) AddBlack(blackUserID string, operationID string)

func (*WsFuncRouter) AddFriend

func (wsRouter *WsFuncRouter) AddFriend(paramsReq string, operationID string)

1

func (*WsFuncRouter) ChangeGroupMemberMute

func (wsRouter *WsFuncRouter) ChangeGroupMemberMute(input, operationID string)

func (*WsFuncRouter) ChangeGroupMute

func (wsRouter *WsFuncRouter) ChangeGroupMute(input, operationID string)

func (*WsFuncRouter) CheckFriend

func (wsRouter *WsFuncRouter) CheckFriend(userIDList string, operationID string)

1

func (*WsFuncRouter) ClearC2CHistoryMessage

func (wsRouter *WsFuncRouter) ClearC2CHistoryMessage(input string, operationID string)

func (*WsFuncRouter) ClearC2CHistoryMessageFromLocalAndSvr

func (wsRouter *WsFuncRouter) ClearC2CHistoryMessageFromLocalAndSvr(input string, operationID string)

func (*WsFuncRouter) ClearGroupHistoryMessage

func (wsRouter *WsFuncRouter) ClearGroupHistoryMessage(input string, operationID string)

func (*WsFuncRouter) ClearGroupHistoryMessageFromLocalAndSvr

func (wsRouter *WsFuncRouter) ClearGroupHistoryMessageFromLocalAndSvr(input string, operationID string)

func (*WsFuncRouter) ClearWorkMomentsNotification

func (wsRouter *WsFuncRouter) ClearWorkMomentsNotification(input, operationID string)

func (*WsFuncRouter) CreateAdvancedQuoteMessage

func (wsRouter *WsFuncRouter) CreateAdvancedQuoteMessage(input string, operationID string)

func (*WsFuncRouter) CreateAdvancedTextMessage

func (wsRouter *WsFuncRouter) CreateAdvancedTextMessage(input string, operationID string)

func (*WsFuncRouter) CreateCardMessage

func (wsRouter *WsFuncRouter) CreateCardMessage(input string, operationID string)

func (*WsFuncRouter) CreateCustomMessage

func (wsRouter *WsFuncRouter) CreateCustomMessage(input string, operationID string)

func (*WsFuncRouter) CreateFaceMessage

func (wsRouter *WsFuncRouter) CreateFaceMessage(input string, operationID string)

func (*WsFuncRouter) CreateFileMessageByURL

func (wsRouter *WsFuncRouter) CreateFileMessageByURL(input string, operationID string)

func (*WsFuncRouter) CreateFileMessageFromFullPath

func (wsRouter *WsFuncRouter) CreateFileMessageFromFullPath(input string, operationID string)

func (*WsFuncRouter) CreateForwardMessage

func (wsRouter *WsFuncRouter) CreateForwardMessage(m string, operationID string)

func (*WsFuncRouter) CreateGroup

func (wsRouter *WsFuncRouter) CreateGroup(input, operationID string)

func (*WsFuncRouter) CreateImageMessageByURL

func (wsRouter *WsFuncRouter) CreateImageMessageByURL(input string, operationID string)

func (*WsFuncRouter) CreateImageMessageFromFullPath

func (wsRouter *WsFuncRouter) CreateImageMessageFromFullPath(input string, operationID string)

func (*WsFuncRouter) CreateLocationMessage

func (wsRouter *WsFuncRouter) CreateLocationMessage(input string, operationID string)

func (*WsFuncRouter) CreateMergerMessage

func (wsRouter *WsFuncRouter) CreateMergerMessage(input string, operationID string)

func (*WsFuncRouter) CreateQuoteMessage

func (wsRouter *WsFuncRouter) CreateQuoteMessage(input string, operationID string)

func (*WsFuncRouter) CreateSoundMessageByURL

func (wsRouter *WsFuncRouter) CreateSoundMessageByURL(input string, operationID string)

func (*WsFuncRouter) CreateSoundMessageFromFullPath

func (wsRouter *WsFuncRouter) CreateSoundMessageFromFullPath(input string, operationID string)

func (*WsFuncRouter) CreateTextAtMessage

func (wsRouter *WsFuncRouter) CreateTextAtMessage(input string, operationID string)

func (*WsFuncRouter) CreateTextMessage

func (wsRouter *WsFuncRouter) CreateTextMessage(input string, operationID string)

import (

"encoding/json"
"open_im_sdk/open_im_sdk"

)

func (*WsFuncRouter) CreateVideoMessageByURL

func (wsRouter *WsFuncRouter) CreateVideoMessageByURL(input string, operationID string)

func (*WsFuncRouter) CreateVideoMessageFromFullPath

func (wsRouter *WsFuncRouter) CreateVideoMessageFromFullPath(input string, operationID string)

func (*WsFuncRouter) DeleteAllConversationFromLocal

func (wsRouter *WsFuncRouter) DeleteAllConversationFromLocal(input string, operationID string)

func (*WsFuncRouter) DeleteAllMsgFromLocal

func (wsRouter *WsFuncRouter) DeleteAllMsgFromLocal(input string, operationID string)

func (*WsFuncRouter) DeleteAllMsgFromLocalAndSvr

func (wsRouter *WsFuncRouter) DeleteAllMsgFromLocalAndSvr(input string, operationID string)

func (*WsFuncRouter) DeleteConversation

func (wsRouter *WsFuncRouter) DeleteConversation(conversationID string, operationID string)

func (*WsFuncRouter) DeleteConversationFromLocalAndSvr

func (wsRouter *WsFuncRouter) DeleteConversationFromLocalAndSvr(conversationID string, operationID string)

func (*WsFuncRouter) DeleteFriend

func (wsRouter *WsFuncRouter) DeleteFriend(friendUserID string, operationID string)

1

func (*WsFuncRouter) DeleteMessageFromLocalAndSvr

func (wsRouter *WsFuncRouter) DeleteMessageFromLocalAndSvr(message string, operationID string)

func (*WsFuncRouter) DeleteMessageFromLocalStorage

func (wsRouter *WsFuncRouter) DeleteMessageFromLocalStorage(message string, operationID string)

func (*WsFuncRouter) DismissGroup

func (wsRouter *WsFuncRouter) DismissGroup(groupID, operationID string)

func (*WsFuncRouter) FindMessageList

func (wsRouter *WsFuncRouter) FindMessageList(findMessageOptions string, operationID string)

func (*WsFuncRouter) GetAdvancedHistoryMessageList

func (wsRouter *WsFuncRouter) GetAdvancedHistoryMessageList(getMessageOptions string, operationID string)

func (*WsFuncRouter) GetAllConversationList

func (wsRouter *WsFuncRouter) GetAllConversationList(input string, operationID string)

func (*WsFuncRouter) GetAtAllTag

func (wsRouter *WsFuncRouter) GetAtAllTag(input string, operationID string)
func (wsRouter *WsFuncRouter) SetSdkLog(input string, operationID string) {
	m := make(map[string]interface{})
	if err := json.Unmarshal([]byte(input), &m); err != nil {
		log.Info("unmarshal failed")
		wsRouter.GlobalSendMessage(EventData{cleanUpfuncName(runFuncName()), StatusBadParameter, "unmarshal failed", "", operationID})
		return
	}
	if !wsRouter.checkKeysIn(input, operationID, runFuncName(), m, "flag") {
		return
	}
	userWorker := init.GetUserWorker(wsRouter.uId)
	userWorker.SetSdkLog(m["flag"].(int32))
}

func (*WsFuncRouter) GetBlackList

func (wsRouter *WsFuncRouter) GetBlackList(input string, operationID string)

func (*WsFuncRouter) GetConversationListSplit

func (wsRouter *WsFuncRouter) GetConversationListSplit(input string, operationID string)

func (*WsFuncRouter) GetConversationRecvMessageOpt

func (wsRouter *WsFuncRouter) GetConversationRecvMessageOpt(input string, operationID string)

func (*WsFuncRouter) GetDepartmentInfo

func (wsRouter *WsFuncRouter) GetDepartmentInfo(input, operationID string)

func (*WsFuncRouter) GetDepartmentMember

func (wsRouter *WsFuncRouter) GetDepartmentMember(input, operationID string)

func (*WsFuncRouter) GetDepartmentMemberAndSubDepartment

func (wsRouter *WsFuncRouter) GetDepartmentMemberAndSubDepartment(input, operationID string)

func (*WsFuncRouter) GetDesignatedFriendsInfo

func (wsRouter *WsFuncRouter) GetDesignatedFriendsInfo(userIDList string, operationID string)

1

func (*WsFuncRouter) GetFriendList

func (wsRouter *WsFuncRouter) GetFriendList(input string, operationID string)

1

func (*WsFuncRouter) GetGroupMemberList

func (wsRouter *WsFuncRouter) GetGroupMemberList(input, operationID string)

func (*WsFuncRouter) GetGroupMemberListByJoinTimeFilter

func (wsRouter *WsFuncRouter) GetGroupMemberListByJoinTimeFilter(input, operationID string)

func (*WsFuncRouter) GetGroupMemberOwnerAndAdmin

func (wsRouter *WsFuncRouter) GetGroupMemberOwnerAndAdmin(input, operationID string)

func (*WsFuncRouter) GetGroupMembersInfo

func (wsRouter *WsFuncRouter) GetGroupMembersInfo(input, operationID string)

func (*WsFuncRouter) GetGroupsInfo

func (wsRouter *WsFuncRouter) GetGroupsInfo(input, operationID string)

func (*WsFuncRouter) GetHistoryMessageList

func (wsRouter *WsFuncRouter) GetHistoryMessageList(getMessageOptions string, operationID string)

func (*WsFuncRouter) GetHistoryMessageListReverse

func (wsRouter *WsFuncRouter) GetHistoryMessageListReverse(getMessageOptions string, operationID string)

func (*WsFuncRouter) GetJoinedGroupList

func (wsRouter *WsFuncRouter) GetJoinedGroupList(input, operationID string)

func (*WsFuncRouter) GetLoginStatus

func (wsRouter *WsFuncRouter) GetLoginStatus(input string, operationID string)

func (*WsFuncRouter) GetLoginUser

func (wsRouter *WsFuncRouter) GetLoginUser(input string, operationID string)

1

func (*WsFuncRouter) GetMultipleConversation

func (wsRouter *WsFuncRouter) GetMultipleConversation(conversationIDList string, operationID string)

func (*WsFuncRouter) GetOneConversation

func (wsRouter *WsFuncRouter) GetOneConversation(input string, operationID string)

func (*WsFuncRouter) GetParentDepartmentList

func (wsRouter *WsFuncRouter) GetParentDepartmentList(input, operationID string)

func (*WsFuncRouter) GetRecvFriendApplicationList

func (wsRouter *WsFuncRouter) GetRecvFriendApplicationList(input string, operationID string)

func (*WsFuncRouter) GetRecvGroupApplicationList

func (wsRouter *WsFuncRouter) GetRecvGroupApplicationList(input, operationID string)

func (*WsFuncRouter) GetSelfUserInfo

func (wsRouter *WsFuncRouter) GetSelfUserInfo(input string, operationID string)

func (*WsFuncRouter) GetSendFriendApplicationList

func (wsRouter *WsFuncRouter) GetSendFriendApplicationList(input string, operationID string)

func (*WsFuncRouter) GetSendGroupApplicationList

func (wsRouter *WsFuncRouter) GetSendGroupApplicationList(input, operationID string)

func (*WsFuncRouter) GetSubDepartment

func (wsRouter *WsFuncRouter) GetSubDepartment(input, operationID string)

func (*WsFuncRouter) GetTotalUnreadMsgCount

func (wsRouter *WsFuncRouter) GetTotalUnreadMsgCount(input string, operationID string)

func (*WsFuncRouter) GetUserInDepartment

func (wsRouter *WsFuncRouter) GetUserInDepartment(input, operationID string)

func (*WsFuncRouter) GetUsersInfo

func (wsRouter *WsFuncRouter) GetUsersInfo(userIDList string, operationID string)

func (*WsFuncRouter) GetWorkMomentsNotification

func (wsRouter *WsFuncRouter) GetWorkMomentsNotification(input, operationID string)

func (*WsFuncRouter) GetWorkMomentsUnReadCount

func (wsRouter *WsFuncRouter) GetWorkMomentsUnReadCount(input, operationID string)

func (*WsFuncRouter) GlobalSendMessage

func (wsRouter *WsFuncRouter) GlobalSendMessage(data interface{})

func (*WsFuncRouter) InitSDK

func (wsRouter *WsFuncRouter) InitSDK(config string, operationID string)

func (*WsFuncRouter) InsertGroupMessageToLocalStorage

func (wsRouter *WsFuncRouter) InsertGroupMessageToLocalStorage(input string, operationID string)

func (*WsFuncRouter) InsertSingleMessageToLocalStorage

func (wsRouter *WsFuncRouter) InsertSingleMessageToLocalStorage(input string, operationID string)

func (*WsFuncRouter) InviteUserToGroup

func (wsRouter *WsFuncRouter) InviteUserToGroup(input, operationID string)

func (*WsFuncRouter) JoinGroup

func (wsRouter *WsFuncRouter) JoinGroup(input, operationID string)

func (*WsFuncRouter) KickGroupMember

func (wsRouter *WsFuncRouter) KickGroupMember(input, operationID string)

func (*WsFuncRouter) Login

func (wsRouter *WsFuncRouter) Login(input string, operationID string)

func (*WsFuncRouter) Logout

func (wsRouter *WsFuncRouter) Logout(input string, operationID string)

func (*WsFuncRouter) LogoutNoCallback

func (wsRouter *WsFuncRouter) LogoutNoCallback(input string, operationID string)

func (*WsFuncRouter) MarkC2CMessageAsRead

func (wsRouter *WsFuncRouter) MarkC2CMessageAsRead(input string, operationID string)

func (*WsFuncRouter) MarkGroupMessageAsRead

func (wsRouter *WsFuncRouter) MarkGroupMessageAsRead(input string, operationID string)

func (*WsFuncRouter) MarkGroupMessageHasRead

func (wsRouter *WsFuncRouter) MarkGroupMessageHasRead(groupID string, operationID string)

func (*WsFuncRouter) MarkMessageAsReadByConID

func (wsRouter *WsFuncRouter) MarkMessageAsReadByConID(input string, operationID string)

func (*WsFuncRouter) NewRevokeMessage

func (wsRouter *WsFuncRouter) NewRevokeMessage(message string, operationID string)

func (*WsFuncRouter) PinConversation

func (wsRouter *WsFuncRouter) PinConversation(input string, operationID string)

func (*WsFuncRouter) QuitGroup

func (wsRouter *WsFuncRouter) QuitGroup(groupID, operationID string)

func (*WsFuncRouter) RefuseFriendApplication

func (wsRouter *WsFuncRouter) RefuseFriendApplication(params string, operationID string)

1

func (*WsFuncRouter) RefuseGroupApplication

func (wsRouter *WsFuncRouter) RefuseGroupApplication(input, operationID string)

func (*WsFuncRouter) RemoveBlack

func (wsRouter *WsFuncRouter) RemoveBlack(removeUserID string, operationID string)

func (*WsFuncRouter) ResetConversationGroupAtType

func (wsRouter *WsFuncRouter) ResetConversationGroupAtType(input string, operationID string)

func (*WsFuncRouter) RevokeMessage

func (wsRouter *WsFuncRouter) RevokeMessage(message string, operationID string)

deprecated

func (*WsFuncRouter) SearchFriends

func (wsRouter *WsFuncRouter) SearchFriends(input string, operationID string)

func (*WsFuncRouter) SearchGroupMembers

func (wsRouter *WsFuncRouter) SearchGroupMembers(input string, operationID string)

func (*WsFuncRouter) SearchGroups

func (wsRouter *WsFuncRouter) SearchGroups(input string, operationID string)

func (*WsFuncRouter) SearchLocalMessages

func (wsRouter *WsFuncRouter) SearchLocalMessages(input string, operationID string)

func (*WsFuncRouter) SearchOrganization

func (wsRouter *WsFuncRouter) SearchOrganization(input, operationID string)

func (*WsFuncRouter) SendMessage

func (wsRouter *WsFuncRouter) SendMessage(input string, operationID string)

func (*WsFuncRouter) SendMessageNotOss

func (wsRouter *WsFuncRouter) SendMessageNotOss(input string, operationID string)

func (*WsFuncRouter) SetAdvancedMsgListener

func (wsRouter *WsFuncRouter) SetAdvancedMsgListener()

func (*WsFuncRouter) SetBatchMsgListener

func (wsRouter *WsFuncRouter) SetBatchMsgListener()

func (*WsFuncRouter) SetConversationDraft

func (wsRouter *WsFuncRouter) SetConversationDraft(input string, operationID string)

func (*WsFuncRouter) SetConversationListener

func (wsRouter *WsFuncRouter) SetConversationListener()

func (*WsFuncRouter) SetConversationRecvMessageOpt

func (wsRouter *WsFuncRouter) SetConversationRecvMessageOpt(input string, operationID string)

func (*WsFuncRouter) SetFriendListener

func (wsRouter *WsFuncRouter) SetFriendListener()

func (*WsFuncRouter) SetFriendRemark

func (wsRouter *WsFuncRouter) SetFriendRemark(remark string, operationID string)

1

func (*WsFuncRouter) SetGlobalRecvMessageOpt

func (wsRouter *WsFuncRouter) SetGlobalRecvMessageOpt(input, operationID string)

func (*WsFuncRouter) SetGroupApplyMemberFriend

func (wsRouter *WsFuncRouter) SetGroupApplyMemberFriend(input string, operationID string)

SetGroupApplyMemberFriend

func (*WsFuncRouter) SetGroupInfo

func (wsRouter *WsFuncRouter) SetGroupInfo(input, operationID string)

func (*WsFuncRouter) SetGroupListener

func (wsRouter *WsFuncRouter) SetGroupListener()

func (*WsFuncRouter) SetGroupLookMemberInfo

func (wsRouter *WsFuncRouter) SetGroupLookMemberInfo(input string, operationID string)

SetGroupApplyMemberFriend

func (*WsFuncRouter) SetGroupMemberNickname

func (wsRouter *WsFuncRouter) SetGroupMemberNickname(input, operationID string)

func (*WsFuncRouter) SetGroupMemberRoleLevel

func (wsRouter *WsFuncRouter) SetGroupMemberRoleLevel(input, operationID string)

func (*WsFuncRouter) SetGroupVerification

func (wsRouter *WsFuncRouter) SetGroupVerification(input, operationID string)

func (*WsFuncRouter) SetOneConversationPrivateChat

func (wsRouter *WsFuncRouter) SetOneConversationPrivateChat(input string, operationID string)

func (*WsFuncRouter) SetOneConversationRecvMessageOpt

func (wsRouter *WsFuncRouter) SetOneConversationRecvMessageOpt(input, operationID string)

func (*WsFuncRouter) SetOrganizationListener

func (wsRouter *WsFuncRouter) SetOrganizationListener()

func (*WsFuncRouter) SetSelfInfo

func (wsRouter *WsFuncRouter) SetSelfInfo(userInfo string, operationID string)

func (*WsFuncRouter) SetSignalingListener

func (wsRouter *WsFuncRouter) SetSignalingListener()

func (*WsFuncRouter) SetUserListener

func (wsRouter *WsFuncRouter) SetUserListener()

func (*WsFuncRouter) SetWorkMomentsListener

func (wsRouter *WsFuncRouter) SetWorkMomentsListener()

func (*WsFuncRouter) SignalingAccept

func (wsRouter *WsFuncRouter) SignalingAccept(input, operationID string)

func (*WsFuncRouter) SignalingCancel

func (wsRouter *WsFuncRouter) SignalingCancel(input, operationID string)

func (*WsFuncRouter) SignalingHungUp

func (wsRouter *WsFuncRouter) SignalingHungUp(input, operationID string)

func (*WsFuncRouter) SignalingInvite

func (wsRouter *WsFuncRouter) SignalingInvite(input, operationID string)

func (*WsFuncRouter) SignalingInviteInGroup

func (wsRouter *WsFuncRouter) SignalingInviteInGroup(input, operationID string)

func (*WsFuncRouter) SignalingReject

func (wsRouter *WsFuncRouter) SignalingReject(input, operationID string)

func (*WsFuncRouter) TransferGroupOwner

func (wsRouter *WsFuncRouter) TransferGroupOwner(input, operationID string)

func (*WsFuncRouter) TypingStatusUpdate

func (wsRouter *WsFuncRouter) TypingStatusUpdate(input string, operationID string)

func (*WsFuncRouter) UnInitSDK

func (wsRouter *WsFuncRouter) UnInitSDK()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL