rstreams

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const BackendName = "redis-streams"
View Source
const RetryReadInterval = 5 * time.Second

RetryReadInterval determines how long to wait before retrying a read, after an error has occurred

Variables

View Source
var (
	ErrMissingStream   = errors.New("you must specify at least one stream")
	ErrMissingPassword = errors.New("missing password (either use only password or fill out both)")
)

Functions

This section is empty.

Types

type RedisStreams

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

func New added in v1.0.0

func (*RedisStreams) Close added in v1.0.0

func (r *RedisStreams) Close(_ context.Context) error

func (*RedisStreams) DisplayError added in v1.0.0

func (r *RedisStreams) DisplayError(msg *records.ErrorRecord) error

DisplayError will parse an Error record and print (pretty) output to STDOUT

func (*RedisStreams) DisplayMessage added in v1.0.0

func (r *RedisStreams) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error

DisplayMessage will parse a Read record and print (pretty) output to STDOUT

func (*RedisStreams) Name added in v1.0.0

func (r *RedisStreams) Name() string

func (*RedisStreams) Read

func (r *RedisStreams) Read(ctx context.Context, readOpts *opts.ReadOptions, resultsChan chan *records.ReadRecord, errorChan chan *records.ErrorRecord) error

func (*RedisStreams) Relay added in v1.0.0

func (r *RedisStreams) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, errorCh chan<- *records.ErrorRecord) error

func (*RedisStreams) Test added in v1.0.0

func (r *RedisStreams) Test(_ context.Context) error

func (*RedisStreams) Tunnel added in v1.4.0

func (r *RedisStreams) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, errorCh chan<- *records.ErrorRecord) error

func (*RedisStreams) Write

func (r *RedisStreams) Write(ctx context.Context, writeOpts *opts.WriteOptions, errorCh chan<- *records.ErrorRecord, messages ...*records.WriteRecord) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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