redis

package
v5.0.0-alpha1+incompat... Latest Latest
Warning

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

Go to latest
Published: Apr 5, 2016 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	START = iota
	BULK_ARRAY
	SIMPLE_MESSAGE
)

Variables

This section is empty.

Functions

func New

func New(
	testMode bool,
	results publish.Transactions,
	cfg *common.Config,
) (protos.Plugin, error)

Types

type Redis

type Redis struct {
	// config
	Ports        []int
	SendRequest  bool
	SendResponse bool
	// contains filtered or unexported fields
}

Redis protocol plugin

func (*Redis) ConnectionTimeout

func (redis *Redis) ConnectionTimeout() time.Duration

func (*Redis) GapInStream

func (redis *Redis) GapInStream(tcptuple *common.TcpTuple, dir uint8,
	nbytes int, private protos.ProtocolData) (priv protos.ProtocolData, drop bool)

func (*Redis) GetPorts

func (redis *Redis) GetPorts() []int

func (*Redis) Parse

func (redis *Redis) Parse(
	pkt *protos.Packet,
	tcptuple *common.TcpTuple,
	dir uint8,
	private protos.ProtocolData,
) protos.ProtocolData

func (*Redis) ReceivedFin

func (redis *Redis) ReceivedFin(tcptuple *common.TcpTuple, dir uint8,
	private protos.ProtocolData) protos.ProtocolData

Jump to

Keyboard shortcuts

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