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

Method String

pkg/proxy/redis/resp.go:18–33  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

16)
17
18func (t RespType) String() string {
19 switch t {
20 case TypeString:
21 return "<string>"
22 case TypeError:
23 return "<error>"
24 case TypeInt:
25 return "<int>"
26 case TypeBulkBytes:
27 return "<bulkbytes>"
28 case TypeArray:
29 return "<array>"
30 default:
31 return fmt.Sprintf("<unknown-0x%02x>", byte(t))
32 }
33}
34
35type Resp struct {
36 Type RespType

Callers 4

newConnPairFunction · 0.45
LocalAddrMethod · 0.45
RemoteAddrMethod · 0.45
initFunction · 0.45

Calls

no outgoing calls

Tested by 1

newConnPairFunction · 0.36