eventbus

package
v0.0.0-...-aaa9050 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2025 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisEventBus

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

func NewRedisEventBus

func NewRedisEventBus(redisConn thirdparty.BaseRedisClient, maxLen int64, eventsTopic string) *RedisEventBus

func (*RedisEventBus) Push

func (ce *RedisEventBus) Push(ctx context.Context, event events.Event) error

type RedisEventsReader

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

func NewRedisEventsReader

func NewRedisEventsReader(conn thirdparty.BaseRedisClient, stream string, readerName string, autocommit bool) *RedisEventsReader

func (*RedisEventsReader) Commit

func (re *RedisEventsReader) Commit(ctx context.Context, commitInfo interface{}) error

func (*RedisEventsReader) Read

func (re *RedisEventsReader) Read(ctx context.Context, limit int32) ([]events.EventWrapper, error)

Jump to

Keyboard shortcuts

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