Documentation
      ¶
    
    
  
    
  
    Index ¶
- Constants
 - Variables
 - type RedisStreams
 - func (r *RedisStreams) Close(_ context.Context) error
 - func (r *RedisStreams) DisplayError(msg *records.ErrorRecord) error
 - func (r *RedisStreams) DisplayMessage(cliOpts *opts.CLIOptions, msg *records.ReadRecord) error
 - func (r *RedisStreams) Name() string
 - func (r *RedisStreams) Read(ctx context.Context, readOpts *opts.ReadOptions, ...) error
 - func (r *RedisStreams) Relay(ctx context.Context, relayOpts *opts.RelayOptions, relayCh chan interface{}, ...) error
 - func (r *RedisStreams) Test(_ context.Context) error
 - func (r *RedisStreams) Tunnel(ctx context.Context, tunnelOpts *opts.TunnelOptions, tunnelSvc tunnel.ITunnel, ...) error
 - func (r *RedisStreams) Write(ctx context.Context, writeOpts *opts.WriteOptions, ...) error
 
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 New(opts *opts.ConnectionOptions) (*RedisStreams, 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) 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
 Click to show internal directories. 
   Click to hide internal directories.