Documentation ¶
Index ¶
Constants ¶
View Source
const (
HeaderSize int64 = headerKeySize + headerValueSize + headerChecksumSize + headerTTLSize // 24 byte
)
Variables ¶
This section is empty.
Functions ¶
func IsCorruptedData ¶
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 ¶
func NewDecoder(ctx runtime.Context, r ReaderAtSeeker) *Decoder
NewDecoder creates a streaming Entry decoder.
func (*Decoder) DecodeHeader ¶
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.