MCPcopy Create free account
hub / github.com/IceFireDB/IceFireDB / WriteSimpleString

Function WriteSimpleString

IceFireDB-PubSub/pkg/router/writer.go:30–42  ·  view source on GitHub ↗
(local *RESPHandle.WriterHandle, reply string)

Source from the content-addressed store, hash-verified

28)
29
30func WriteSimpleString(local *RESPHandle.WriterHandle, reply string) error {
31 err := local.WriteSimpleString(reply)
32 if err != nil {
33 logrus.Error("client write error:", err)
34 return ErrLocalWriter
35 }
36 err = local.Flush()
37 if err != nil {
38 logrus.Error("Client flush error:", err)
39 return ErrLocalFlush
40 }
41 return nil
42}
43
44func WriteBulk(local *RESPHandle.WriterHandle, reply []byte) error {
45 err := local.WriteBulk(reply)

Callers 9

cmdCOMMANDMethod · 0.92
cmdPINGMethod · 0.92
cmdCMDEXECMethod · 0.92
cmdQUITMethod · 0.92
cmdCOMMANDMethod · 0.92
cmdPINGMethod · 0.92
cmdCMDEXECMethod · 0.92
cmdQUITMethod · 0.92
cmdPpubMethod · 0.92

Calls 1

ErrorMethod · 0.45

Tested by

no test coverage detected