inputreader

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2020 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type RedisLPOPReader

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

RedisLPOPReader is a abstraction of LPOP list and behaves like a reader

func NewLPOPReader

func NewLPOPReader(rc *redis.Conn, db int, queue string) *RedisLPOPReader

NewLPOPReader creates a new RedisLPOPScanner

func (*RedisLPOPReader) Read

func (rl *RedisLPOPReader) Read(p []byte) (n int, err error)

Read LPOP the redis queue and use a bytes reader to copy the resulting data in p

func (*RedisLPOPReader) Teardown

func (rl *RedisLPOPReader) Teardown()

Teardown is called on error to close the redis connection

Jump to

Keyboard shortcuts

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