MCPcopy Index your code
hub / github.com/CodisLabs/codis / NewError

Function NewError

pkg/proxy/redis/resp.go:69–74  ·  view source on GitHub ↗
(value []byte)

Source from the content-addressed store, hash-verified

67}
68
69func NewError(value []byte) *Resp {
70 r := &Resp{}
71 r.Type = TypeError
72 r.Value = value
73 return r
74}
75
76func NewErrorf(format string, args ...interface{}) *Resp {
77 return NewError([]byte(fmt.Sprintf(format, args...)))

Callers 2

NewErrorfFunction · 0.85
TestEncodeErrorFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestEncodeErrorFunction · 0.68