Documentation ¶
Index ¶
- func Start(ctx context.Context, config *Config, client discovery.SvcDiscoveryRegistry, ...) error
- type Config
- type ConversationNotificationSender
- func (c *ConversationNotificationSender) ConversationChangeNotification(ctx context.Context, userID string, conversationIDs []string)
- func (c *ConversationNotificationSender) ConversationSetPrivateNotification(ctx context.Context, sendID, recvID string, isPrivateChat bool, ...)
- func (c *ConversationNotificationSender) ConversationUnreadChangeNotification(ctx context.Context, userID, conversationID string, ...)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶ added in v3.7.0
type Config struct { RpcConfig config.Conversation RedisConfig config.Redis MongodbConfig config.Mongo NotificationConfig config.Notification LocalCacheConfig config.LocalCache Discovery config.Discovery }
type ConversationNotificationSender ¶ added in v3.7.0
type ConversationNotificationSender struct {
*rpcclient.NotificationSender
}
func NewConversationNotificationSender ¶ added in v3.7.0
func NewConversationNotificationSender(conf *config.Notification, msgClient *rpcli.MsgClient) *ConversationNotificationSender
func (*ConversationNotificationSender) ConversationChangeNotification ¶ added in v3.7.0
func (c *ConversationNotificationSender) ConversationChangeNotification(ctx context.Context, userID string, conversationIDs []string)
func (*ConversationNotificationSender) ConversationSetPrivateNotification ¶ added in v3.7.0
func (c *ConversationNotificationSender) ConversationSetPrivateNotification(ctx context.Context, sendID, recvID string, isPrivateChat bool, conversationID string, )
SetPrivate invote.
func (*ConversationNotificationSender) ConversationUnreadChangeNotification ¶ added in v3.7.0
func (c *ConversationNotificationSender) ConversationUnreadChangeNotification( ctx context.Context, userID, conversationID string, unreadCountTime, hasReadSeq int64, )
Click to show internal directories.
Click to hide internal directories.