protocol

package
v0.0.0-...-5c79d48 Latest Latest
Warning

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

Go to latest
Published: Feb 15, 2024 License: AGPL-3.0 Imports: 7 Imported by: 0

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.

Jump to

Keyboard shortcuts

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