proto

package
v0.0.0-...-d1067ba Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EndN  = '\n'   // +<string>\n
	EndNN = "\n\n" // +<string>\n\n
	EndOK = "ok"   // +<string>ok
)

ssdb resp protocol data type.

View Source
const Nil = SsdbError("Ssdb: nil") // nolint:errname

Variables

This section is empty.

Functions

func ParseErrorReply

func ParseErrorReply(line []byte) error

func Scan

func Scan(b []byte, v interface{}) error

Scan parses bytes `b` to `v` with appropriate type.

func ScanSlice

func ScanSlice(data []string, slice interface{}) error

Types

type Reader

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

func NewReader

func NewReader(rd io.Reader) *Reader

func (*Reader) Buffered

func (r *Reader) Buffered() int

func (*Reader) Peek

func (r *Reader) Peek(n int) ([]byte, error)

func (*Reader) ReadReply

func (r *Reader) ReadReply() (interface{}, error)

func (*Reader) Reset

func (r *Reader) Reset(rd io.Reader)

type SsdbError

type SsdbError string

func (SsdbError) Error

func (e SsdbError) Error() string

func (SsdbError) SsdbError

func (SsdbError) SsdbError()

type Writer

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

func NewWriter

func NewWriter(wr writer) *Writer

func (*Writer) WriteArgs

func (w *Writer) WriteArgs(args []interface{}) error

Jump to

Keyboard shortcuts

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