MCPcopy Create free account
hub / github.com/chainreactors/EvilProxy / writeRedisError

Function writeRedisError

internal/api/redis_queue_protocol.go:495–501  ·  view source on GitHub ↗
(writer *bufio.Writer, message string)

Source from the content-addressed store, hash-verified

493}
494
495func writeRedisError(writer *bufio.Writer, message string) error {
496 if writer == nil {
497 return net.ErrClosed
498 }
499 _, errWrite := writer.WriteString("-" + message + "\r\n")
500 return errWrite
501}
502
503func writeRedisNilBulkString(writer *bufio.Writer) error {
504 if writer == nil {

Callers 2

handleRedisConnectionMethod · 0.85

Calls 1

WriteStringMethod · 0.80

Tested by

no test coverage detected