text

package
v1.6.0-rc5 Latest Latest
Warning

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

Go to latest
Published: Jul 31, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var DeniedMsg = []byte("CLIENT_ERROR access denied\r\n")

DeniedMsg is sent if policy denies the request. Exported for tests

View Source
var ErrorMsg = []byte("ERROR\r\n")

ErrorMsg is standard memcached error line

Functions

This section is empty.

Types

type Parser

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

Parser implements proxylib.Parser

func (*Parser) OnData

func (p *Parser) OnData(reply, endStream bool, dataBuffers [][]byte) (proxylib.OpType, int)

OnData parses text memcached data

type ParserFactory

type ParserFactory struct{}

ParserFactory implements proxylib.ParserFactory

var ParserFactoryInstance *ParserFactory

ParserFactoryInstance creates text parser for unified memcached parser

func (*ParserFactory) Create

func (p *ParserFactory) Create(connection *proxylib.Connection) proxylib.Parser

Create creates memcached parser

Jump to

Keyboard shortcuts

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