Documentation ¶
Index ¶
Constants ¶
View Source
const ( RefData int8 = iota RefLink )
Variables ¶
View Source
var ( ErrNotFound = xerrors.New("diskv: not found") ErrUnknowOperation = xerrors.New("diskv: unknow operation") )
Functions ¶
func DefaultShardFun ¶
Types ¶
type DisKV ¶
func (*DisKV) AllKeysChan ¶
func (*DisKV) Put ¶
Put - write dag node into repo
we use MaxLinkDagSize to divide dag nodes into two categories:
- link-dag which size is smaller than or equal to MaxLinkDagSize
- data-dag which size is bigger than MaxLinkDagSize
we store link-dag into leveldb only, store data-dag into disk and keep an ref whith leveldb
type Option ¶
type Option func(cfg *Config)
func MaxCacheDagsConf ¶
func MaxLinkDagSizeConf ¶
func MaxReadConf ¶
func MaxWriteConf ¶
func ShardFunConf ¶
Click to show internal directories.
Click to hide internal directories.