redis

package
v0.4.20 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2022 License: MPL-2.0 Imports: 13 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewClient

func NewClient(cfg config.Configuration) (*redis.Client, taskq.Factory, error)

func NewQueue

func NewQueue(opts queue.QueueOptions) queue.Queuer

Types

type RedisQueue

type RedisQueue struct {
	Name string
	// contains filtered or unexported fields
}

func (*RedisQueue) CheckEventDeliveryinPending

func (q *RedisQueue) CheckEventDeliveryinPending(ctx context.Context, id string) (bool, error)

func (*RedisQueue) CheckEventDeliveryinStream

func (q *RedisQueue) CheckEventDeliveryinStream(ctx context.Context, id string, start string, end string) (bool, error)

func (*RedisQueue) CheckEventDeliveryinZSET

func (q *RedisQueue) CheckEventDeliveryinZSET(ctx context.Context, id string, min string, max string) (bool, error)

func (*RedisQueue) Close

func (q *RedisQueue) Close() error

func (*RedisQueue) Consumer

func (q *RedisQueue) Consumer() taskq.QueueConsumer

func (*RedisQueue) DeleteEvenDeliveryfromStream

func (q *RedisQueue) DeleteEvenDeliveryfromStream(ctx context.Context, id string) (bool, error)

func (*RedisQueue) DeleteEventDeliveriesFromStream added in v0.4.10

func (q *RedisQueue) DeleteEventDeliveriesFromStream(ctx context.Context, ids []string) error

func (*RedisQueue) DeleteEventDeliveriesFromZSET added in v0.4.10

func (q *RedisQueue) DeleteEventDeliveriesFromZSET(ctx context.Context, ids []string) error

func (*RedisQueue) DeleteEventDeliveryFromZSET added in v0.4.10

func (q *RedisQueue) DeleteEventDeliveryFromZSET(ctx context.Context, id string) (bool, error)

func (*RedisQueue) ExportMessagesfromStream added in v0.4.17

func (q *RedisQueue) ExportMessagesfromStream(ctx context.Context) ([]taskq.Message, error)

func (*RedisQueue) ExportMessagesfromStreamXACK added in v0.4.17

func (q *RedisQueue) ExportMessagesfromStreamXACK(ctx context.Context) ([]taskq.Message, error)

func (*RedisQueue) Length added in v0.4.10

func (q *RedisQueue) Length() (int, error)

func (*RedisQueue) Write

func (*RedisQueue) XInfoConsumers

func (q *RedisQueue) XInfoConsumers(ctx context.Context) *redis.XInfoConsumersCmd

func (*RedisQueue) XInfoStream

func (q *RedisQueue) XInfoStream(ctx context.Context) *redis.XInfoStreamCmd

func (*RedisQueue) XPending

func (q *RedisQueue) XPending(ctx context.Context) (*redis.XPending, error)

func (*RedisQueue) XPendingExt

func (q *RedisQueue) XPendingExt(ctx context.Context, start string, end string) ([]redis.XPendingExt, error)

func (*RedisQueue) XRange

func (q *RedisQueue) XRange(ctx context.Context, start string, end string) *redis.XMessageSliceCmd

func (*RedisQueue) XRangeN

func (q *RedisQueue) XRangeN(ctx context.Context, start string, end string, count int64) *redis.XMessageSliceCmd

func (*RedisQueue) ZRangebyScore

func (q *RedisQueue) ZRangebyScore(ctx context.Context, min string, max string) ([]string, error)

Jump to

Keyboard shortcuts

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