Documentation ¶
Index ¶
Constants ¶
View Source
const (
MetaInfoSize = keySize + valueSize + checksumSize + ttlSize
)
Variables ¶
This section is empty.
Functions ¶
func DecodeEntry ¶
DecodeEntry decodes a serialized entry
func IsCorruptedData ¶
IsCorruptedData indicates if the error correspondes to possible data corruption
Types ¶
type Decoder ¶
type Decoder struct {
// contains filtered or unexported fields
}
Decoder wraps an underlying io.Reader and allows you to stream Entry decodings on it.
func NewDecoder ¶
NewDecoder creates a streaming Entry decoder.
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
Encoder wraps an underlying io.Writer and allows you to stream Entry encodings on it.
func NewEncoder ¶
NewEncoder creates a streaming Entry encoder.
Click to show internal directories.
Click to hide internal directories.