MCPcopy Create free account
hub / github.com/distributedio/titan / Error

Method Error

encoding/resp/resp.go:84–87  ·  view source on GitHub ↗

Error builds a RESP error

(s string)

Source from the content-addressed store, hash-verified

82
83//Error builds a RESP error
84func (r *Encoder) Error(s string) error {
85 _, err := r.w.Write([]byte("-" + s + "\r\n"))
86 return err
87}
88
89//SimpleString builds a RESP simplestring
90func (r *Encoder) SimpleString(s string) error {

Callers 1

TestError_EncodeFunction · 0.95

Implementers 1

Encoderencoding/resp/resp.go

Calls 1

WriteMethod · 0.80

Tested by 1

TestError_EncodeFunction · 0.76