Versions in this module Expand all Collapse all v1 v1.1.0 Apr 6, 2022 Changes in this version + var ErrDataNotExist = errors.New("data does not exist") + type DefaultSkipListImpl struct + Lenth int64 + func NewDefaultSkipListImpl() (*DefaultSkipListImpl, error) + func (d *DefaultSkipListImpl) Del(key []byte) error + func (d *DefaultSkipListImpl) Get(key []byte) ([]byte, bool, error) + func (d *DefaultSkipListImpl) GetIter() Iter + func (d *DefaultSkipListImpl) Len() int64 + func (d *DefaultSkipListImpl) Put(key, value []byte) error + type DefaultSkipListIterImpl struct + func (d *DefaultSkipListIterImpl) Close() + func (d *DefaultSkipListIterImpl) Get() ([]byte, error) + func (d *DefaultSkipListIterImpl) HasNext() bool + func (d *DefaultSkipListIterImpl) Next() ([]byte, error) + func (d *DefaultSkipListIterImpl) Seek(key []byte) error + type DefaultSkipListNode struct + Key []byte + Value []byte + func NewDefaultSkipListNode(key, Value []byte, level int) *DefaultSkipListNode + type Iter interface + Close func() + Get func() ([]byte, error) + HasNext func() bool + Next func() ([]byte, error) + Seek func(key []byte) error + type SkipList interface + Del func(key []byte) error + Get func(key []byte) ([]byte, bool, error) + GetIter func() Iter + Len func() int64 + Put func(key, value []byte) error + func NewSkipList(config SkipListConf) (SkipList, error) + type SkipListConf struct + Typ string