blocks.go 292 Bytes
Newer Older
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14
package blocks

import (
  "github.com/jbenet/go-ipfs/bitswap"
  "github.com/jbenet/go-ipfs/storage"
)

// Blocks is the ipfs blocks service. It is the way
// to retrieve blocks by the higher level ipfs modules

type BlockService struct {
  Local *storage.Storage
  Remote *bitswap.BitSwap
}