Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNotFound = errors.New("not found")
Functions ¶
This section is empty.
Types ¶
type BlockView ¶
func NewBlockView ¶
type MapBlockstore ¶
type MapBlockstore struct {
// contains filtered or unexported fields
}
MapBlockstore is a blockstore that is backed by an in memory map.
func NewMapBlockstore ¶
func NewMapBlockstore() *MapBlockstore
NewMapBlockstore creates a new blockstore that is backed by an in memory map.
type TieredBlockFetcher ¶
type TieredBlockFetcher struct {
// contains filtered or unexported fields
}
TieredBlockFetcher is a Fetcher that attempts to retrieve a block serially from multiple configured fetchers in order, returning the first Block that is returned by a fetcher.
func NewTieredBlockFetcher ¶
func NewTieredBlockFetcher(fetchers ...Fetcher) *TieredBlockFetcher
NewTieredBlockFetcher cretaes a new TieredBlockFetcher - a Fetcher that attempts to retrieve a block serially from multiple configured fetchers in order, returning the first Block that is returned by a fetcher.
Click to show internal directories.
Click to hide internal directories.