common

package
v3.5.1 Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2024 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

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 CheckConfigErrCallback

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

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 DoListener

func DoListener(Li goroutine, ctx context.Context)

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 TriggerCmdConnected

func TriggerCmdConnected(ctx context.Context, ch chan Cmd2Value) error

Connection success trigger

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(ctx context.Context, ch chan Cmd2Value) error

func TriggerCmdMaxSeq

func TriggerCmdMaxSeq(ctx context.Context, seq *sdk_struct.CmdMaxSeqToMsgSync, ch chan Cmd2Value) error

seq trigger

func TriggerCmdNewMsgCome

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

func TriggerCmdNotification

func TriggerCmdNotification(ctx context.Context, msg sdk_struct.CmdNewMsgComeToConversation, conversationCh chan Cmd2Value) error

func TriggerCmdPushMsg

func TriggerCmdPushMsg(ctx context.Context, msg *sdkws.PushMessages, ch chan Cmd2Value) error

Push message, msg for msgData slice

func TriggerCmdSuperGroupMsgCome

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

func TriggerCmdSyncReactionExtensions

func TriggerCmdSyncReactionExtensions(node SyncReactionExtensionsNode, conversationCh chan Cmd2Value) error

func TriggerCmdUpdateConversation

func TriggerCmdUpdateConversation(ctx context.Context, node UpdateConNode, conversationCh chan<- Cmd2Value) error

func TriggerCmdUpdateMessage

func TriggerCmdUpdateMessage(ctx context.Context, 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{}
	Ctx   context.Context
}

type DeleteConNode

type DeleteConNode struct {
	SourceID       string
	ConversationID string
	SessionType    int
}

type SourceIDAndSessionType

type SourceIDAndSessionType struct {
	SourceID    string
	SessionType int32
	FaceURL     string
	Nickname    string
}

type SyncReactionExtensionsNode

type SyncReactionExtensionsNode struct {
	OperationID string
	Action      int
	Args        interface{}
}

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 {
	SessionType int32
	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