Versions in this module Expand all Collapse all v0 v0.0.1 May 6, 2021 Changes in this version + const HeaderSize + const HintHeaderSize + var ErrCrc32 = errors.New("checksumIEEE error") + var ErrIsNotDir = errors.New("This File is not dir") + var ErrNotFound = errors.New("Not Found") + var ErrNotReadRoot = errors.New("Can Not Read The Bitcask Root Director") + func CRC32(str string) uint32 + func DecodeEntry(buf []byte, crc bool) ([]byte, error) + func DecodeEntryDetail(buf []byte, crc bool) (uint32, uint32, uint32, uint32, []byte, []byte, error) + func DecodeEntryHeader(buf []byte) (uint32, uint32, uint32, uint32) + func DecodeHint(buf []byte) (uint32, uint32, uint32, uint64) + func MD5(str string) string + func SHA1(str string) string + type BFile struct + type BFiles struct + type BitCask struct + Opts *Options + func New(dirName string, opts *Options) (*BitCask, error) + func (bc *BitCask) Close() + func (bc *BitCask) Del(key []byte) error + func (bc *BitCask) Get(key []byte) ([]byte, error) + func (bc *BitCask) Set(key []byte, value []byte) error + type KeyDirs struct + func NewKeyDir(dirName string) *KeyDirs + type Options struct + CheckSumCrc32 bool + ExpirySecs int + MaxFileSize uint64 + MergeSecs int + OpenTimeoutSecs int + ReadWrite bool + ValueMaxSize uint64 + func NewOptions(expirySecs int, maxFileSize uint64, openTimeoutSecs, mergeSecs int, ...) Options