Documentation
¶
Index ¶
- Constants
- Variables
- func CommandConnection(log *zap.Logger, sd *statsd.Client, conn net.Conn, address string, ...)
- func ReadWireMessages(ctx context.Context, log *zap.Logger, nc net.Conn, address string, id uint64, ...) ([]*redis.Message, error)
- func WriteWireMessages(ctx context.Context, log *zap.Logger, wm []*redis.Message, nc net.Conn, ...) error
- type MessageInterceptor
Constants ¶
View Source
const ( TransactionOpen = iota TransactionInner TransactionClose )
Variables ¶
View Source
var PipelineSignalEndKey = []byte("🔚")
View Source
var PipelineSignalStartKey = []byte("🔜")
View Source
var TransactionCommands = map[string]int{ "DISCARD": TransactionClose, "EXEC": TransactionClose, "MULTI": TransactionOpen, "UNWATCH": TransactionInner, "WATCH": TransactionOpen, }
View Source
var UnsupportedCommands = map[string]bool{ "BLPOP": true, "BRPOP": true, "BRPOPLPUSH": true, "BZPOPMAX": true, "BZPOPMIN": true, "XREAD": true, "XREADGROUP": true, "SUBSCRIBE": true, "UNSUBSCRIBE": true, "WAIT": true, "PUNSUBSCRIBE": true, "PSUBSCRIBE": true, "AUTH": true, "SELECT": true, }
Functions ¶
func CommandConnection ¶
func ReadWireMessages ¶
Types ¶
type MessageInterceptor ¶
Click to show internal directories.
Click to hide internal directories.