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

Function readLine

IceFireDB-PubSub/test/proto/proto.go:17–26  ·  view source on GitHub ↗
(r *bufio.Reader)

Source from the content-addressed store, hash-verified

15)
16
17func readLine(r *bufio.Reader) (string, error) {
18 line, err := r.ReadString('\n')
19 if err != nil {
20 return "", err
21 }
22 if len(line) < 3 {
23 return "", ErrProtocol
24 }
25 return line, nil
26}
27
28// Read an array, with all elements are the raw redis commands
29// Also reads sets and maps.

Callers 3

ReadArrayFunction · 0.70
ReadStringFunction · 0.70
ReadFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected