sources

package
v0.0.0-...-c589933 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisStream

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

RedisStream implements Redis Streams

func NewRedisStream

func NewRedisStream(config *redis.Options, name, step string) (*RedisStream, error)

NewRedisStream implements a new RedisStream instance

func (*RedisStream) Consume

func (r *RedisStream) Consume(i int, batchSize int64, channel types.Channel) error

Consume will consume messages from the stream

func (*RedisStream) Push

func (r *RedisStream) Push(record interface{}, shard *types.Shard) error

Push will push a record to the stream

func (*RedisStream) Read

func (r *RedisStream) Read(options *types.ReadOptions, channel types.Channel)

Read starts to read from ConsumerCount at rate of BatchSize

Jump to

Keyboard shortcuts

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