Documentation ¶
Index ¶
Constants ¶
View Source
const (
HintDeletedFlag = byte(1)
)
View Source
const HintEncodeSize = HintKeySize + 8 + 4
HintKeySize + 8 bytes value offset + 4 bytes value size
View Source
const HintKeySize = MaxKeySize + 1 + 1
max key size 128 byte + 1 byte which record the key size + 1 byte delete flag
View Source
const MaxKeySize = 128
Variables ¶
View Source
var ( ErrNone = xerrors.New("mutcask: error none") ErrValueFormat = xerrors.New("mutcask: invalid value format") ErrDataRotted = xerrors.New("mutcask: data may be rotted") ErrKeySizeTooLong = xerrors.New("mutcask: key size is too long") ErrHintFormat = xerrors.New("mutcask: invalid hint format") ErrPathUndefined = xerrors.New("mutcask: should define path within config") ErrPath = xerrors.New("mutcask: path should be directory not file") ErrHintLogBroken = xerrors.New("mutcask: hint log broken") ErrReadHintBeyondRange = xerrors.New("mutcask: read hint out of file range") ErrRepoLocked = xerrors.New("mutcask: repo has been locked") )
Functions ¶
func NewMutcask ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.