Documentation ¶
Index ¶
Constants ¶
View Source
const ( // RequestMagic says that memcache frame is a request RequestMagic = 0x80 // ResponseMagic says that memcache frame is a response ResponseMagic = 0x81 )
Variables ¶
View Source
var DeniedMsgBase = []byte{
0x81, 0, 0, 0,
0, 0, 0, 8,
0, 0, 0, 0x0d,
0, 0, 0, 0,
0, 0, 0, 0,
0, 0, 0, 0,
'a', 'c', 'c',
'e', 's', 's',
' ', 'd', 'e',
'n', 'i', 'e',
'd'}
DeniedMsgBase is sent if policy denies the request. Exported for tests
Functions ¶
This section is empty.
Types ¶
type Parser ¶
type Parser struct {
// contains filtered or unexported fields
}
Parser implements proxylib.Parser
type ParserFactory ¶
type ParserFactory struct{}
ParserFactory implements proxylib.ParserFactory
var ParserFactoryInstance *ParserFactory
ParserFactoryInstance creates binary parser for unified parser
func (*ParserFactory) Create ¶
func (p *ParserFactory) Create(connection *proxylib.Connection) proxylib.Parser
Create creates binary memcached parser
Click to show internal directories.
Click to hide internal directories.