protocol

package
v1.2.3-fred.10 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 6 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 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