Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var TypeError = fmt.Errorf("type error")
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface { Init() error Put(chunkType ChunkType, reference boson.Address, providers []Provider) error Get(chunkType ChunkType, reference boson.Address) ([]Consumer, error) GetByOverlay(chunkType ChunkType, reference, overlay boson.Address) (Consumer, error) GetAll(chunkType ChunkType) (map[string][]Consumer, error) Remove(chunkType ChunkType, reference, overlay boson.Address) error RemoveAll(chunkType ChunkType, reference boson.Address) error Has(chunkType ChunkType, reference, overlay boson.Address) (bool, error) HasChunk(chunkType ChunkType, reference boson.Address, bit int) (bool, error) StartFinder(rootCid boson.Address) CancelFinder(rootCid boson.Address) IsFinder(rootCid boson.Address) bool }
func New ¶
func New(stateStore storage.StateStorer) Interface
Click to show internal directories.
Click to hide internal directories.