Documentation ¶
Index ¶
- func GetChatConversationIDByMsg(msg *sdkws.MsgData) string
- func GetConversationIDByMsg(msg *sdkws.MsgData) string
- func GetConversationIDBySessionType(sessionType int, ids ...string) string
- func GetNotificationConversationIDByMsg(msg *sdkws.MsgData) string
- func IsGroupConversationID(conversationID string) bool
- func IsNotification(conversationID string) bool
- func IsNotificationByMsg(msg *sdkws.MsgData) bool
- 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) 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 WithSenderSync() OptionsOpt
- func WithUnreadCount(b bool) OptionsOpt
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetConversationIDByMsg ¶
func IsGroupConversationID ¶ added in v3.8.0
func IsNotification ¶
func IsNotificationByMsg ¶
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) 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 WithSenderSync ¶
func WithSenderSync() OptionsOpt
func WithUnreadCount ¶
func WithUnreadCount(b bool) OptionsOpt
Click to show internal directories.
Click to hide internal directories.