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

Interface Encoder

encoding/codec.go:4–11  ·  view source on GitHub ↗

Encoder defines the interface of a RESP encoder

Source from the content-addressed store, hash-verified

2
3// Encoder defines the interface of a RESP encoder
4type Encoder interface {
5 Error(s string) error
6 SimpleString(s string) error
7 BulkString(s string) error
8 NullBulkString() error
9 Integer(v int64) error
10 Array(size int) error
11}
12
13//Decoder defines the interface of a RESP decoder
14type Decoder interface {

Callers 23

ServeMethod · 0.65
WriteMethod · 0.65
serveMethod · 0.65
mainFunction · 0.65
TestBulkString_DecodeFunction · 0.65
TestError_DecodeFunction · 0.65
TestInteger_DecodeFunction · 0.65
ReplyErrorFunction · 0.65
ReplySimpleStringFunction · 0.65
ReadSimpleStringFunction · 0.65
ReplyBulkStringFunction · 0.65
ReadBulkStringFunction · 0.65

Implementers 1

Encoderencoding/resp/resp.go

Calls

no outgoing calls

Tested by

no test coverage detected