redisretriever

package
v1.27.0 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: MIT Imports: 7 Imported by: 0

README

Redis retriever

This retriever is used to retrieve data from a Redis database.

How to use?

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Retriever

type Retriever struct {
	// Options to connect to Redis
	Options *redis.Options

	// Prefix is the prefix of the keys in Redis, it is used to filter
	// the keys to retrieve in redis. If empty, no prefix is used.
	// Your flag names will be returned without the prefix.
	Prefix string
	// contains filtered or unexported fields
}

func (*Retriever) Init

func (r *Retriever) Init(ctx context.Context, _ *log.Logger) error

func (*Retriever) Retrieve

func (r *Retriever) Retrieve(ctx context.Context) ([]byte, error)

func (*Retriever) Shutdown

func (r *Retriever) Shutdown(ctx context.Context) error

func (*Retriever) Status

func (r *Retriever) Status() retriever.Status

Jump to

Keyboard shortcuts

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