redis

package
v0.0.0-...-51fb2f2 Latest Latest
Warning

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

Go to latest
Published: Aug 29, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDriver

func NewDriver(ctx context.Context, opts ...Handler) (workers.Driver, error)

NewDriver return new driver with redis backend

Types

type Handler

type Handler func(*Options) error

Handler is the option handler

func WithQueuePrefix

func WithQueuePrefix(p string) Handler

WithQueuePrefix add prefix for queue name key

func WithRedisOptions

func WithRedisOptions(network, address string, options ...redis.DialOption) Handler

WithRedisOptions try to create redis client based on options

func WithRedisPool

func WithRedisPool(c *redis.Pool) Handler

WithRedisPool is one mandatory option to set the client

type Options

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

Options is the option type used for the create redis client or other options

Jump to

Keyboard shortcuts

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