Documentation ¶
Index ¶
- func GenConversationUniqueKey(msg *sdkws.MsgData) string
- func GetChatConversationIDByMsg(msg *sdkws.MsgData) string
- func GetConversationIDByMsg(msg *sdkws.MsgData) string
- func GetConversationIDBySessionType(sessionType int, ids ...string) string
- func GetNotificationConversationID(sessionType int, ids ...string) string
- func GetNotificationConversationIDByConversationID(conversationID string) string
- func GetNotificationConversationIDByMsg(msg *sdkws.MsgData) string
- func IsNotification(conversationID string) bool
- func IsNotificationByMsg(msg *sdkws.MsgData) bool
- func ParseConversationID(msg *sdkws.MsgData) (isNotification bool, conversationID string)
- func Pb2String(pb proto.Message) (string, error)
- func String2Pb(s string, pb proto.Message) error
- type MsgBySeq
- type Options
- func (o Options) Is(notification string) bool
- func (o Options) IsConversationUpdate() bool
- func (o Options) IsHistory() bool
- func (o Options) IsNotNotification() bool
- func (o Options) IsNotPrivate() bool
- func (o Options) IsOfflinePush() bool
- func (o Options) IsPersistent() bool
- func (o Options) IsReactionFromCache() bool
- func (o Options) IsSendMsg() bool
- func (o Options) IsSenderConversationUpdate() bool
- func (o Options) IsSenderNotificationPush() bool
- func (o Options) IsSenderSync() bool
- func (o Options) IsUnreadCount() bool
- type OptionsOpt
- func WithConversationUpdate() OptionsOpt
- func WithHistory(b bool) OptionsOpt
- func WithNotNotification(b bool) OptionsOpt
- func WithNotPrivate() OptionsOpt
- func WithOfflinePush(b bool) OptionsOpt
- func WithPersistent() OptionsOpt
- func WithReactionFromCache() OptionsOpt
- func WithSendMsg(b bool) OptionsOpt
- func WithSenderConversationUpdate() OptionsOpt
- func WithSenderNotificationPush() OptionsOpt
- func WithSenderSync() OptionsOpt
- func WithUnreadCount(b bool) OptionsOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConversationIDByMsg ¶
func IsNotification ¶
func IsNotificationByMsg ¶
func ParseConversationID ¶
Types ¶
type Options ¶
func NewMsgOptions ¶
func NewMsgOptions() Options
func NewOptions ¶
func NewOptions(opts ...OptionsOpt) Options
func WithOptions ¶
func WithOptions(options Options, opts ...OptionsOpt) Options
func (Options) IsConversationUpdate ¶
func (Options) IsNotNotification ¶
func (Options) IsNotPrivate ¶
func (Options) IsOfflinePush ¶
func (Options) IsPersistent ¶
func (Options) IsReactionFromCache ¶
func (Options) IsSenderConversationUpdate ¶
func (Options) IsSenderNotificationPush ¶
func (Options) IsSenderSync ¶
func (Options) IsUnreadCount ¶
type OptionsOpt ¶
type OptionsOpt func(Options)
func WithConversationUpdate ¶
func WithConversationUpdate() OptionsOpt
func WithHistory ¶
func WithHistory(b bool) OptionsOpt
func WithNotNotification ¶
func WithNotNotification(b bool) OptionsOpt
func WithNotPrivate ¶
func WithNotPrivate() OptionsOpt
func WithOfflinePush ¶
func WithOfflinePush(b bool) OptionsOpt
func WithPersistent ¶
func WithPersistent() OptionsOpt
func WithReactionFromCache ¶
func WithReactionFromCache() OptionsOpt
func WithSendMsg ¶
func WithSendMsg(b bool) OptionsOpt
func WithSenderConversationUpdate ¶
func WithSenderConversationUpdate() OptionsOpt
func WithSenderNotificationPush ¶
func WithSenderNotificationPush() OptionsOpt
func WithSenderSync ¶
func WithSenderSync() OptionsOpt
func WithUnreadCount ¶
func WithUnreadCount(b bool) OptionsOpt
Click to show internal directories.
Click to hide internal directories.