Documentation ¶
Index ¶
- Variables
- func FromArray(bs Blocks, vals []cbg.CBORMarshaler) (cid.Cid, error)
- type Blocks
- type ErrNotFound
- type Node
- type Root
- func (r *Root) BatchDelete(indices []uint64) error
- func (r *Root) BatchSet(vals []cbg.CBORMarshaler) error
- func (r *Root) Delete(i uint64) error
- func (r *Root) Flush() (cid.Cid, error)
- func (r *Root) ForEach(cb func(uint64, *cbg.Deferred) error) error
- func (r *Root) Get(i uint64, out interface{}) error
- func (t *Root) MarshalCBOR(w io.Writer) error
- func (r *Root) Set(i uint64, val interface{}) error
- func (r *Root) Subtract(or *Root) error
- func (t *Root) UnmarshalCBOR(br io.Reader) error
Constants ¶
This section is empty.
Variables ¶
View Source
var MaxIndex = uint64(1 << 48) // fairly arbitrary, but I don't want to overflow/underflow in nodesForHeight
Functions ¶
Types ¶
type Blocks ¶
type Blocks interface { Get(cid.Cid, cbg.CBORUnmarshaler) error Put(cbg.CBORMarshaler) (cid.Cid, error) }
func WrapBlockstore ¶
func WrapBlockstore(bs blockstore.Blockstore) Blocks
type ErrNotFound ¶
type ErrNotFound struct {
Index uint64
}
func (ErrNotFound) Error ¶
func (e ErrNotFound) Error() string
func (ErrNotFound) NotFound ¶
func (e ErrNotFound) NotFound() bool
type Node ¶
Click to show internal directories.
Click to hide internal directories.