redis

package
v19.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

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

func NewBackend

func NewBackend(client rueidis.Client, keyPrefix string, batchSize int64) *Backend

func (*Backend) Ack

func (b *Backend) Ack(ctx context.Context, topic, consumerGroup string, messageIDs ...string) error

func (*Backend) DeleteConsumer

func (b *Backend) DeleteConsumer(ctx context.Context, topic, consumerGroup, consumerName string) error

func (*Backend) Publish

func (b *Backend) Publish(ctx context.Context, topic string, events ...*event.CloudEvent) ([]string, error)

func (*Backend) Subscribe

func (b *Backend) Subscribe(ctx context.Context, topic, consumerGroup, consumerName string, eventTypes []string) iter.Seq2[pubsub.Message, error]

Jump to

Keyboard shortcuts

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