Documentation ¶
Overview ¶
Package crc64 implements the Jones coefficients with an init value of 0.
Index ¶
- Constants
- func DecodeDump(p []byte) (interface{}, error)
- func Digest(b []byte) uint64
- func DumpHashValue(v Hash) []byte
- func DumpListValue(v List) []byte
- func DumpSetValue(v Set) []byte
- func DumpStringValue(v String) []byte
- func DumpZSetValue(v ZSet) []byte
- func NewCrc64() hash.Hash64
- type Encoder
- func (e *Encoder) EncodeDatabase(n int) error
- func (e *Encoder) EncodeDumpFooter() error
- func (e *Encoder) EncodeExpiry(expiry uint64) error
- func (e *Encoder) EncodeFloat(f float64) (err error)
- func (e *Encoder) EncodeFooter() error
- func (e *Encoder) EncodeHeader() error
- func (e *Encoder) EncodeLength(l uint32) (err error)
- func (e *Encoder) EncodeString(s []byte) error
- func (e *Encoder) EncodeType(v ValueType) error
- type Hash
- type List
- type Set
- type String
- type ValueType
- type ZSet
Constants ¶
View Source
const ( RDBFlagAux = 0xfa RDBFlagResizeDB = 0xfb RDBFlagExpiryMS = 0xfc RDBFlagExpiry = 0xfd RDBFlagSelectDB = 0xfe RDBFlagEOF = 0xff )
View Source
const Version = 6
Variables ¶
This section is empty.
Functions ¶
func DecodeDump ¶
func DumpHashValue ¶
RDB payload: | RDB TYPE HASH | len (encode hash) | len(encode field) | encode field | len(encode value) | encode value |.....|
func DumpListValue ¶
RDB payload: | RDB TYPE LIST | len (encode list) | len(encode value) | encode value |.....|
func DumpSetValue ¶
RDB payload: | RDB TYPE SET | len (encode set) | len(encode value) | encode value |.....|
func DumpStringValue ¶
RDB payload: | RDB TYPE STRING | len (encode string) | encode string |
func DumpZSetValue ¶
RDB payload: | RDB TYPE ZSET | len (encode zset) | len(encode member) | encode member | len(encode score) | encode score |.....|
Types ¶
type Encoder ¶
type Encoder struct {
// contains filtered or unexported fields
}
func NewEncoder ¶
func (*Encoder) EncodeDatabase ¶
func (*Encoder) EncodeDumpFooter ¶
func (*Encoder) EncodeExpiry ¶
func (*Encoder) EncodeFloat ¶
func (*Encoder) EncodeFooter ¶
func (*Encoder) EncodeHeader ¶
func (*Encoder) EncodeLength ¶
func (*Encoder) EncodeString ¶
func (*Encoder) EncodeType ¶
Click to show internal directories.
Click to hide internal directories.