binprot

package
v0.0.0-...-d3db570 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2017 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Get        = 0x00
	Set        = 0x01
	Add        = 0x02
	Replace    = 0x03
	Delete     = 0x04
	Increment  = 0x05
	Decrement  = 0x06
	Quit       = 0x07
	Flush      = 0x08
	GetQ       = 0x09
	Noop       = 0x0a
	Version    = 0x0b
	GetK       = 0x0c
	GetKQ      = 0x0d
	Append     = 0x0e
	Prepend    = 0x0f
	Stat       = 0x10
	SetQ       = 0x11
	AddQ       = 0x12
	ReplaceQ   = 0x13
	DeleteQ    = 0x14
	IncrementQ = 0x15
	DecrementQ = 0x16
	QuitQ      = 0x17
	FlushQ     = 0x18
	AppendQ    = 0x19
	PrependQ   = 0x1a
	Verbosity  = 0x1b
	Touch      = 0x1c
	GAT        = 0x1d
	GATQ       = 0x1e
	GetE       = 0x40
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BinProt

type BinProt struct{}

func (BinProt) Add

func (b BinProt) Add(rw *bufio.ReadWriter, key, value []byte) error

func (BinProt) Append

func (b BinProt) Append(rw *bufio.ReadWriter, key, value []byte) error

func (BinProt) BatchGet

func (b BinProt) BatchGet(rw *bufio.ReadWriter, keys [][]byte) ([][]byte, error)

func (BinProt) Delete

func (b BinProt) Delete(rw *bufio.ReadWriter, key []byte) error

func (BinProt) GAT

func (b BinProt) GAT(rw *bufio.ReadWriter, key []byte) ([]byte, error)

func (BinProt) Get

func (b BinProt) Get(rw *bufio.ReadWriter, key []byte) ([]byte, error)

func (BinProt) GetE

func (b BinProt) GetE(rw *bufio.ReadWriter, key []byte) ([]byte, uint32, uint32, error)

func (BinProt) GetWithOpaque

func (b BinProt) GetWithOpaque(rw *bufio.ReadWriter, key []byte, opaque int) ([]byte, error)

func (BinProt) Prepend

func (b BinProt) Prepend(rw *bufio.ReadWriter, key, value []byte) error

func (BinProt) Replace

func (b BinProt) Replace(rw *bufio.ReadWriter, key, value []byte) error

func (BinProt) Set

func (b BinProt) Set(rw *bufio.ReadWriter, key, value []byte) error

func (BinProt) SetE

func (b BinProt) SetE(rw *bufio.ReadWriter, key, value []byte, expiration uint32) error

func (BinProt) Touch

func (b BinProt) Touch(rw *bufio.ReadWriter, key []byte) error

type ErrOpaqueMismatch

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

func (ErrOpaqueMismatch) Error

func (e ErrOpaqueMismatch) Error() string

Jump to

Keyboard shortcuts

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