push

package
v3.4.0-rc.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2023 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetContent

func GetContent(msg *sdkws.MsgData) string

func NewOfflinePusher

func NewOfflinePusher(cache cache.MsgModel) offlinepush.OfflinePusher

func Start

Types

type Consumer

type Consumer struct {
	// contains filtered or unexported fields
}

func NewConsumer

func NewConsumer(pusher *Pusher) *Consumer

func (*Consumer) Start

func (c *Consumer) Start()

type ConsumerHandler

type ConsumerHandler struct {
	// contains filtered or unexported fields
}

func NewConsumerHandler

func NewConsumerHandler(pusher *Pusher) *ConsumerHandler

func (ConsumerHandler) Cleanup

func (*ConsumerHandler) ConsumeClaim

func (ConsumerHandler) Setup

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 (p *Pusher) DeleteMemberAndSetConversationSeq(ctx context.Context, groupID string, userIDs []string) error

func (*Pusher) GetConnsAndOnlinePush

func (p *Pusher) GetConnsAndOnlinePush(ctx context.Context, msg *sdkws.MsgData, pushToUserIDs []string) (wsResults []*msggateway.SingleMsgToUserResults, err error)

func (*Pusher) GetOfflinePushOpts

func (p *Pusher) GetOfflinePushOpts(msg *sdkws.MsgData) (opts *offlinepush.Opts, err error)

func (*Pusher) Push2SuperGroup

func (p *Pusher) Push2SuperGroup(ctx context.Context, groupID string, msg *sdkws.MsgData) (err error)

func (*Pusher) Push2User

func (p *Pusher) Push2User(ctx context.Context, userIDs []string, msg *sdkws.MsgData) error

func (*Pusher) UnmarshalNotificationElem

func (p *Pusher) UnmarshalNotificationElem(bytes []byte, t interface{}) error

Directories

Path Synopsis
fcm

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL