redis

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Nov 24, 2015 License: Apache-2.0 Imports: 11 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

View Source
const (
	START = iota
	BULK_ARRAY
	SIMPLE_MESSAGE
)

Variables

View Source
var RedisCommands = map[string]struct{}{}/* 158 elements not displayed */

Keep sorted for future command addition

Functions

This section is empty.

Types

type Redis

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

func (*Redis) ConnectionTimeout added in v1.0.0

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 added in v1.0.0

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

func (*Redis) Init

func (redis *Redis) Init(test_mode bool, results publisher.Client) error

func (*Redis) InitDefaults

func (redis *Redis) InitDefaults()

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

type RedisMessage

type RedisMessage struct {
	Ts            time.Time
	NumberOfBulks int64
	Bulks         []string

	TcpTuple     common.TcpTuple
	CmdlineTuple *common.CmdlineTuple
	Direction    uint8

	IsRequest bool
	IsError   bool
	Message   string
	Method    string
	Path      string
	Size      int
	// contains filtered or unexported fields
}

type RedisStream

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

func (*RedisStream) PrepareForNewMessage

func (stream *RedisStream) PrepareForNewMessage()

type RedisTransaction

type RedisTransaction struct {
	Type string

	Src          common.Endpoint
	Dst          common.Endpoint
	ResponseTime int32
	Ts           int64
	JsTs         time.Time

	Method   string
	Path     string
	Query    string
	IsError  bool
	BytesOut int
	BytesIn  int

	Redis common.MapStr

	Request_raw  string
	Response_raw string
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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