redisScanner

package
v0.0.0-...-1d800d4 Latest Latest
Warning

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

Go to latest
Published: Aug 13, 2024 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Each

func Each(ctx context.Context, uc redis.UniversalClient, prefix string, count int64, fn func(ctx context.Context, id sharedTypes.UUID) bool) (bool, error)

func Periodic

func Periodic(ctx context.Context, uc redis.UniversalClient, prefix string, pc PeriodicOptions, msg string, fn func(ctx context.Context, id sharedTypes.UUID) bool)

func ScanRedis

func ScanRedis(ctx context.Context, uc redis.UniversalClient, match string, count int64) (chan string, chan error)

Types

type PeriodicOptions

type PeriodicOptions struct {
	Count    int64         `json:"count"`
	Interval time.Duration `json:"interval"`
}

func (*PeriodicOptions) Validate

func (o *PeriodicOptions) Validate() error

Jump to

Keyboard shortcuts

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