parser

package
v1.2.7 Latest Latest
Warning

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

Go to latest
Published: Jun 20, 2021 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseBytes added in v1.2.7

func ParseBytes(data []byte) ([]redis.Reply, error)

ParseBytes reads data from []byte and return all replies

func ParseOne

func ParseOne(data []byte) (redis.Reply, error)

ParseOne reads data from []byte and return the first payload

func ParseStream

func ParseStream(reader io.Reader) <-chan *Payload

ParseStream reads data from io.Reader and send payloads through channel

Types

type Payload

type Payload struct {
	Data redis.Reply
	Err  error
}

Payload stores redis.Reply or error

Jump to

Keyboard shortcuts

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