consumers

package
v0.0.0-...-9835270 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2021 License: AGPL-3.0, Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PushDataConsumer

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

func NewPushDataConsumer

func NewPushDataConsumer(
	cfg *config.Dendrite,
	pushDB model.PushAPIDatabase,
	client *common.RpcClient,
) *PushDataConsumer

func (*PushDataConsumer) Clean

func (s *PushDataConsumer) Clean()

func (*PushDataConsumer) GetCB

func (*PushDataConsumer) GetTopic

func (s *PushDataConsumer) GetTopic() string

func (*PushDataConsumer) HttpRequest

func (s *PushDataConsumer) HttpRequest(
	reqUrl string,
	content []byte,
) (int, []byte, error)

func (*PushDataConsumer) PushData

func (s *PushDataConsumer) PushData(
	ctx context.Context,
	input *gomatrixserverlib.ClientEvent,
	pushers *pushapitypes.Pushers,
	senderDisplayName,
	roomName,
	userID,
	roomAlias string,
	action *pushapitypes.TweakAction,
	notifyCount int64,
	createContent interface{},
)

func (*PushDataConsumer) SetPushFailTimes

func (s *PushDataConsumer) SetPushFailTimes(pusherKey string, success bool) int

func (*PushDataConsumer) Start

func (s *PushDataConsumer) Start() error

Jump to

Keyboard shortcuts

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