Versions in this module Expand all Collapse all v0 v0.2.3 Feb 27, 2015 v0.2.2 Feb 27, 2015 Changes in this version + var BlockPrefix = ds.NewKey("b") + var ErrNotFound = errors.New("blockstore: block not found") + var ValueTypeMismatch = errors.New("The retrieved value is not a Block") + type Blockstore interface + AllKeys func(ctx context.Context) ([]u.Key, error) + AllKeysChan func(ctx context.Context) (<-chan u.Key, error) + AllKeysRange func(ctx context.Context, offset int, limit int) ([]u.Key, error) + AllKeysRangeChan func(ctx context.Context, offset int, limit int) (<-chan u.Key, error) + DeleteBlock func(u.Key) error + Get func(u.Key) (*blocks.Block, error) + Has func(u.Key) (bool, error) + Put func(*blocks.Block) error + func NewBlockstore(d ds.ThreadSafeDatastore) Blockstore + func WriteCached(bs Blockstore, size int) (Blockstore, error)