encoding

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Decoder

type Decoder interface {
	Error() (string, error)
	SimpleString() (string, error)
	BulkString() (string, error)
	Integer() (int64, error)
	Array(each func([]byte)) (int, error)
}

Decoder defines the interface of a RESP decoder

type Encoder

type Encoder interface {
	Error(s string) error
	SimpleString(s string) error
	BulkString(s string) error
	NullBulkString() error
	Integer(v int64) error
	Array(size int) error
}

Encoder defines the interface of a RESP encoder

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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