Documentation ¶
Index ¶
- Variables
- func GetContent(msg *sdkws.MsgData) string
- func GetMsgID(sendID string) string
- func IsNotFound(err error) bool
- func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryRegistry, ...) error
- type Config
- type MessageInterceptorChain
- type MessageInterceptorFunc
- type MessageRevoked
- type MsgNotificationSender
- type Validator
Constants ¶
This section is empty.
Variables ¶
View Source
var ExcludeContentType = []int{constant.HasReadReceipt}
Functions ¶
func GetContent ¶
func IsNotFound ¶
Types ¶
type MessageInterceptorChain ¶
type MessageInterceptorChain []MessageInterceptorFunc
MessageInterceptorChain defines a chain of message interceptor functions.
type MessageInterceptorFunc ¶
type MessageRevoked ¶
type MessageRevoked struct { RevokerID string `json:"revokerID"` RevokerRole int32 `json:"revokerRole"` ClientMsgID string `json:"clientMsgID"` RevokerNickname string `json:"revokerNickname"` RevokeTime int64 `json:"revokeTime"` SourceMessageSendTime int64 `json:"sourceMessageSendTime"` SourceMessageSendID string `json:"sourceMessageSendID"` SourceMessageSenderNickname string `json:"sourceMessageSenderNickname"` SessionType int32 `json:"sessionType"` Seq uint32 `json:"seq"` }
type MsgNotificationSender ¶ added in v3.7.0
type MsgNotificationSender struct {
*rpcclient.NotificationSender
}
func NewMsgNotificationSender ¶ added in v3.7.0
func NewMsgNotificationSender(config *Config, opts ...rpcclient.NotificationSenderOptions) *MsgNotificationSender
func (*MsgNotificationSender) MarkAsReadNotification ¶ added in v3.7.0
func (*MsgNotificationSender) UserDeleteMsgsNotification ¶ added in v3.7.0
func (m *MsgNotificationSender) UserDeleteMsgsNotification(ctx context.Context, userID, conversationID string, seqs []int64)
Click to show internal directories.
Click to hide internal directories.