redis

package
v0.0.0-...-98cd694 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2024 License: Unlicense Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// ErrEmptyInputProvided indicates empty input was provided in an unacceptable context.
	ErrEmptyInputProvided = errors.New("empty input provided")
)

Functions

func ProvideRedisConsumerProvider

func ProvideRedisConsumerProvider(logger logging.Logger, tracerProvider tracing.TracerProvider, cfg Config) messagequeue.ConsumerProvider

ProvideRedisConsumerProvider returns a ConsumerProvider for a given address.

func ProvideRedisPublisherProvider

func ProvideRedisPublisherProvider(l logging.Logger, tracerProvider tracing.TracerProvider, cfg Config) messagequeue.PublisherProvider

ProvideRedisPublisherProvider returns a PublisherProvider for a given address.

Types

type Config

type Config struct {
	Username       string   `json:"username"           toml:"username,omitempty"`
	Password       string   `json:"password,omitempty" toml:"password,omitempty"`
	QueueAddresses []string `json:"queueAddress"       toml:"queue_address,omitempty"`
	DB             int      `json:"database,omitempty" toml:"database,omitempty"`
}

Config configures a Redis-backed consumer.

func (*Config) ValidateWithContext

func (cfg *Config) ValidateWithContext(ctx context.Context) error

ValidateWithContext validates a Config struct.

Jump to

Keyboard shortcuts

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