Documentation ¶
Index ¶
- func GetContent(msg *sdkws.MsgData) string
- func NewOfflinePusher(cache cache.MsgModel) offlinepush.OfflinePusher
- func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error
- type Consumer
- type ConsumerHandler
- type Pusher
- func (p *Pusher) DeleteMemberAndSetConversationSeq(ctx context.Context, groupID string, userIDs []string) error
- func (p *Pusher) GetConnsAndOnlinePush(ctx context.Context, msg *sdkws.MsgData, pushToUserIDs []string) (wsResults []*msggateway.SingleMsgToUserResults, err error)
- func (p *Pusher) GetOfflinePushOpts(msg *sdkws.MsgData) (opts *offlinepush.Opts, err error)
- func (p *Pusher) Push2SuperGroup(ctx context.Context, groupID string, msg *sdkws.MsgData) (err error)
- func (p *Pusher) Push2User(ctx context.Context, userIDs []string, msg *sdkws.MsgData) error
- func (p *Pusher) UnmarshalNotificationElem(bytes []byte, t interface{}) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetContent ¶
func NewOfflinePusher ¶
func NewOfflinePusher(cache cache.MsgModel) offlinepush.OfflinePusher
func Start ¶
func Start(client discoveryregistry.SvcDiscoveryRegistry, server *grpc.Server) error
Types ¶
type Consumer ¶
type Consumer struct {
// contains filtered or unexported fields
}
func NewConsumer ¶
type ConsumerHandler ¶
type ConsumerHandler struct {
// contains filtered or unexported fields
}
func NewConsumerHandler ¶
func NewConsumerHandler(pusher *Pusher) *ConsumerHandler
func (ConsumerHandler) Cleanup ¶
func (ConsumerHandler) Cleanup(_ sarama.ConsumerGroupSession) error
func (*ConsumerHandler) ConsumeClaim ¶
func (c *ConsumerHandler) ConsumeClaim(sess sarama.ConsumerGroupSession, claim sarama.ConsumerGroupClaim, ) error
func (ConsumerHandler) Setup ¶
func (ConsumerHandler) Setup(_ sarama.ConsumerGroupSession) error
type Pusher ¶
type Pusher struct {
// contains filtered or unexported fields
}
func NewPusher ¶
func NewPusher(discov discoveryregistry.SvcDiscoveryRegistry, offlinePusher offlinepush.OfflinePusher, database controller.PushDatabase, groupLocalCache *localcache.GroupLocalCache, conversationLocalCache *localcache.ConversationLocalCache, conversationRpcClient *rpcclient.ConversationRpcClient, groupRpcClient *rpcclient.GroupRpcClient, msgRpcClient *rpcclient.MessageRpcClient, ) *Pusher
func (*Pusher) DeleteMemberAndSetConversationSeq ¶
func (*Pusher) GetConnsAndOnlinePush ¶
func (p *Pusher) GetConnsAndOnlinePush(ctx context.Context, msg *sdkws.MsgData, pushToUserIDs []string) (wsResults []*msggateway.SingleMsgToUserResults, err error)
func (*Pusher) GetOfflinePushOpts ¶
func (*Pusher) Push2SuperGroup ¶
func (*Pusher) UnmarshalNotificationElem ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.