common

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckAdminGroupRequestDiff

func CheckAdminGroupRequestDiff(a []*model_struct.LocalAdminGroupRequest, b []*model_struct.LocalAdminGroupRequest) (aInBNot, bInANot, sameA, sameB []int)

func CheckAnyErrCallback

func CheckAnyErrCallback(callback open_im_sdk_callback.Base, errCode int32, err error, operationID string)

func CheckArgsErrCallback

func CheckArgsErrCallback(callback open_im_sdk_callback.Base, err error, operationID string)

func CheckBlackListDiff

func CheckBlackListDiff(a []*model_struct.LocalBlack, b []*model_struct.LocalBlack) (aInBNot, bInANot, sameA, sameB []int)

func CheckConfigErrCallback

func CheckConfigErrCallback(callback open_im_sdk_callback.Base, err error, operationID string)

func CheckConversationListDiff

func CheckConversationListDiff(conversationsOnServer, conversationsOnLocal []*tempConversation) (aInBNot, bInANot, sameA, sameB []int)

func CheckDBErrCallback

func CheckDBErrCallback(callback open_im_sdk_callback.Base, err error, operationID string)

func CheckDataErrCallback

func CheckDataErrCallback(callback open_im_sdk_callback.Base, err error, operationID string)

func CheckDepartmentDiff

func CheckDepartmentDiff(a []*model_struct.LocalDepartment, b []*model_struct.LocalDepartment) (aInBNot, bInANot, sameA, sameB []int)

func CheckDepartmentMemberDiff

func CheckDepartmentMemberDiff(a []*model_struct.LocalDepartmentMember, b []*model_struct.LocalDepartmentMember) (aInBNot, bInANot, sameA, sameB []int)

func CheckErrAndResp

func CheckErrAndResp(err error, resp []byte, output interface{}) error

func CheckErrAndRespCallback

func CheckErrAndRespCallback(callback open_im_sdk_callback.Base, err error, resp []byte, output interface{}, operationID string)

func CheckFriendListDiff

func CheckFriendListDiff(a []*model_struct.LocalFriend, b []*model_struct.LocalFriend) (aInBNot, bInANot, sameA, sameB []int)

func CheckFriendRequestDiff

func CheckFriendRequestDiff(a []*model_struct.LocalFriendRequest, b []*model_struct.LocalFriendRequest) (aInBNot, bInANot, sameA, sameB []int)

func CheckGroupInfoDiff

func CheckGroupInfoDiff(a []*model_struct.LocalGroup, b []*model_struct.LocalGroup) (aInBNot, bInANot, sameA, sameB []int)

func CheckGroupMemberDiff

func CheckGroupMemberDiff(a []*model_struct.LocalGroupMember, b []*model_struct.LocalGroupMember) (aInBNot, bInANot, sameA, sameB []int)

func CheckGroupRequestDiff

func CheckGroupRequestDiff(a []*model_struct.LocalGroupRequest, b []*model_struct.LocalGroupRequest) (aInBNot, bInANot, sameA, sameB []int)

func CheckTokenErrCallback

func CheckTokenErrCallback(callback open_im_sdk_callback.Base, err error, operationID string)

func DoListener

func DoListener(Li goroutine)

func GetGroupMemberListByGroupID

func GetGroupMemberListByGroupID(callback open_im_sdk_callback.Base, operationID string, db *db.DataBase, groupID string) []*model_struct.LocalGroupMember

func GroupInfoCopyToLocal

func GroupInfoCopyToLocal(dst *model_struct.LocalGroup, src *server_api_params.GroupInfo)

func JsonUnmarshalAndArgsValidate

func JsonUnmarshalAndArgsValidate(s string, args interface{}, callback open_im_sdk_callback.Base, operationID string) error

func JsonUnmarshalCallback

func JsonUnmarshalCallback(s string, args interface{}, callback open_im_sdk_callback.Base, operationID string) error

func LocalTransferToTempConversation

func LocalTransferToTempConversation(local []*model_struct.LocalConversation) []*tempConversation

func MapstructureDecode

func MapstructureDecode(input interface{}, output interface{}, callback open_im_sdk_callback.Base, oprationID string)

func MergeBlackFriendResult

func MergeBlackFriendResult(base []*model_struct.LocalBlack, add []*model_struct.LocalFriend) []api.FullUserInfo

func MergeFriendBlackResult

func MergeFriendBlackResult(base []*model_struct.LocalFriend, add []*model_struct.LocalBlack) []api.FullUserInfo

func MergeUserResult

func MergeUserResult(publicList []*api.PublicUserInfo, friendList []*model_struct.LocalFriend, blackList []*model_struct.LocalBlack) []api.FullUserInfo

func ServerTransferToTempConversation

func ServerTransferToTempConversation(resp server_api_params.GetAllConversationsResp) []*tempConversation

func TransferToLocalAdminGroupRequest

func TransferToLocalAdminGroupRequest(apiData []*server_api_params.GroupRequest) []*model_struct.LocalAdminGroupRequest

func TransferToLocalBlack

func TransferToLocalBlack(apiBlackList []*server_api_params.PublicUserInfo, ownerUserID string) []*model_struct.LocalBlack

func TransferToLocalDepartment

func TransferToLocalDepartment(apiData []*server_api_params.Department) []*model_struct.LocalDepartment

func TransferToLocalFriend

func TransferToLocalFriend(apiFriendList []*server_api_params.FriendInfo) []*model_struct.LocalFriend

func TransferToLocalFriendRequest

func TransferToLocalFriendRequest(apiFriendList []*server_api_params.FriendRequest) []*model_struct.LocalFriendRequest

func TransferToLocalGroupInfo

func TransferToLocalGroupInfo(apiData []*server_api_params.GroupInfo) []*model_struct.LocalGroup

func TransferToLocalGroupRequest

func TransferToLocalGroupRequest(apiData []*server_api_params.GroupRequest) []*model_struct.LocalGroupRequest

func TransferToLocalSendGroupRequest

func TransferToLocalSendGroupRequest(apiData []*server_api_params.GroupRequest) []*model_struct.LocalGroupRequest

func TransferToLocalUserInfo

func TransferToLocalUserInfo(apiData *server_api_params.UserInfo) *model_struct.LocalUser

func TriggerCmdDeleteConversationAndMessage

func TriggerCmdDeleteConversationAndMessage(sourceID, conversationID string, sessionType int, conversationCh chan Cmd2Value) error

func TriggerCmdJoinedSuperGroup

func TriggerCmdJoinedSuperGroup(cmd sdk_struct.CmdJoinedSuperGroup, joinedSuperGroupCh chan Cmd2Value) error

func TriggerCmdLogout

func TriggerCmdLogout(ch chan Cmd2Value) error

func TriggerCmdMaxSeq

func TriggerCmdMaxSeq(seq sdk_struct.CmdMaxSeqToMsgSync, ch chan Cmd2Value) error

func TriggerCmdNewMsgCome

func TriggerCmdNewMsgCome(msg sdk_struct.CmdNewMsgComeToConversation, conversationCh chan Cmd2Value) error

func TriggerCmdPushMsg

func TriggerCmdPushMsg(msg sdk_struct.CmdPushMsgToMsgSync, ch chan Cmd2Value) error

func TriggerCmdSuperGroupMsgCome

func TriggerCmdSuperGroupMsgCome(msg sdk_struct.CmdNewMsgComeToConversation, conversationCh chan Cmd2Value) error

func TriggerCmdUpdateConversation

func TriggerCmdUpdateConversation(node UpdateConNode, conversationCh chan Cmd2Value) error

func TriggerCmdUpdateMessage

func TriggerCmdUpdateMessage(node UpdateMessageNode, conversationCh chan Cmd2Value) error

func TriggerCmdWakeUp

func TriggerCmdWakeUp(ch chan Cmd2Value) error

func UnInitAll

func UnInitAll(conversationCh chan Cmd2Value) error

Types

type Cmd2Value

type Cmd2Value struct {
	Cmd   string
	Value interface{}
}

type DeleteConNode

type DeleteConNode struct {
	SourceID       string
	ConversationID string
	SessionType    int
}

type UpdateConInfo

type UpdateConInfo struct {
	UserID  string
	GroupID string
}

type UpdateConNode

type UpdateConNode struct {
	ConID  string
	Action int //1 Delete the conversation; 2 Update the latest news in the conversation or add a conversation; 3 Put a conversation on the top;
	// 4 Cancel a conversation on the top, 5 Messages are not read and set to 0, 6 New conversations
	Args interface{}
}

type UpdateMessageInfo

type UpdateMessageInfo struct {
	UserID   string
	FaceURL  string
	Nickname string
	GroupID  string
}

type UpdateMessageNode

type UpdateMessageNode struct {
	Action int
	Args   interface{}
}

Jump to

Keyboard shortcuts

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