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 ErrNotFound = errors.New("blockservice: key not found") + type BlockService struct + Blockstore blockstore.Blockstore + Exchange exchange.Interface + func Mocks(t *testing.T, n int) []*BlockService + func New(bs blockstore.Blockstore, rem exchange.Interface) (*BlockService, error) + func (s *BlockService) AddBlock(b *blocks.Block) (u.Key, error) + func (s *BlockService) Close() error + func (s *BlockService) DeleteBlock(k u.Key) error + func (s *BlockService) GetBlock(ctx context.Context, k u.Key) (*blocks.Block, error) + func (s *BlockService) GetBlocks(ctx context.Context, ks []u.Key) <-chan *blocks.Block