Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Codec ¶
type Codec interface { Decode([]byte) (interface{}, error) Encode(interface{}) ([]byte, error) // CodecID is a short identifier to communicate what codec should be used to decode the value. // Once in use, this should be stable to avoid confusing other clients. CodecID() string }
Codec allows KV clients to serialise and deserialise values.
type Proto ¶
type Proto struct {
// contains filtered or unexported fields
}
Proto is a Codec for proto/snappy
Click to show internal directories.
Click to hide internal directories.