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: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CacheUpdateConsumer

type CacheUpdateConsumer struct {
	Cfg *config.Dendrite
	// contains filtered or unexported fields
}

func (*CacheUpdateConsumer) OnMessage

func (c *CacheUpdateConsumer) OnMessage(ctx context.Context, topic string, partition int32, data []byte, rawMsg interface{})

func (*CacheUpdateConsumer) Start

func (c *CacheUpdateConsumer) Start() error

type CacheUpdateManager

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

func NewCacheUpdateManager

func NewCacheUpdateManager(cfg *config.Dendrite) *CacheUpdateManager

func (*CacheUpdateManager) OnMessage

func (m *CacheUpdateManager) OnMessage(ctx context.Context, topic string, partition int32, data []byte, rawMsg interface{})

func (*CacheUpdateManager) Pool

func (m *CacheUpdateManager) Pool() *redis.Pool

func (*CacheUpdateManager) Start

func (m *CacheUpdateManager) Start() error

type DBEventSeqConsumer

type DBEventSeqConsumer struct {
	Cfg *config.Dendrite
	// contains filtered or unexported fields
}

func (*DBEventSeqConsumer) CommitMessage

func (c *DBEventSeqConsumer) CommitMessage(rawMsg []interface{})

func (*DBEventSeqConsumer) OnMessage

func (c *DBEventSeqConsumer) OnMessage(ctx context.Context, topic string, partition int32, data []byte, rawMsg interface{})

func (*DBEventSeqConsumer) Start

func (c *DBEventSeqConsumer) Start() error

type DBEventSeqManager

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

func NewDBEventSeqManager

func NewDBEventSeqManager(cfg *config.Dendrite) *DBEventSeqManager

func (*DBEventSeqManager) OnMessage

func (m *DBEventSeqManager) OnMessage(ctx context.Context, topic string, partition int32, data []byte, rawMsg interface{})

func (*DBEventSeqManager) Start

func (m *DBEventSeqManager) Start() error

type IKafkaChannelSub

type IKafkaChannelSub interface {
	SubscribeTopic(topic string) error
}

Jump to

Keyboard shortcuts

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