redis

package module
v0.0.0-...-e52ba1f Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Dissector dissecting

Functions

func NewDissector

func NewDissector() api.Dissector

Types

type ConnectError

type ConnectError struct {
	Message string
}

ConnectError redis connection error,such as io timeout

func (*ConnectError) Error

func (e *ConnectError) Error() string

type RedisCommand

type RedisCommand string

type RedisInputStream

type RedisInputStream struct {
	*bufio.Reader
	Buf []byte
	// contains filtered or unexported fields
}

receive message from redis

type RedisKeyword

type RedisKeyword string

type RedisPacket

type RedisPacket struct {
	Type    RedisType    `json:"type"`
	Command RedisCommand `json:"command"`
	Key     string       `json:"key"`
	Value   string       `json:"value"`
	Keyword RedisKeyword `json:"keyword"`
}

type RedisPayload

type RedisPayload struct {
	Data interface{}
}

func (RedisPayload) MarshalJSON

func (h RedisPayload) MarshalJSON() ([]byte, error)

type RedisPayloader

type RedisPayloader interface {
	MarshalJSON() ([]byte, error)
}

type RedisProtocol

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

func NewProtocol

func NewProtocol(is *RedisInputStream) *RedisProtocol

func (*RedisProtocol) Read

func (p *RedisProtocol) Read() (packet *RedisPacket, err error)

type RedisType

type RedisType string

type RedisWrapper

type RedisWrapper struct {
	Method  string      `json:"method"`
	Url     string      `json:"url"`
	Details interface{} `json:"details"`
}

Jump to

Keyboard shortcuts

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