Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrCmdNotSupported = trace.NotImplemented("command not supported")
ErrCmdNotSupported is returned when an unsupported Redis command is sent to Teleport proxy.
Functions ¶
func MakeUnknownCommandErrorForCmd ¶
func MakeUnknownCommandErrorForCmd(cmd *redis.Cmd) redis.RedisError
MakeUnknownCommandErrorForCmd creates an unknown command error for the provided command in the original Redis format.
func WriteCmd ¶
func WriteCmd(wr *redis.Writer, vals interface{}) error
WriteCmd writes Redis commands passed as vals to Redis wire form. Most types are covered by go-redis implemented WriteArg() function. Types override by this function are: * Redis errors and Go error: go-redis returns a "human-readable" string instead of RESP compatible error message * integers: go-redis converts them to string, which is not always what we want. * slices: arrays are recursively converted to RESP responses.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.