Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Dissector dissecting
Functions ¶
func NewDissector ¶
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 ¶
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 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 RedisWrapper ¶
Click to show internal directories.
Click to hide internal directories.