Documentation ¶
Index ¶
- type ChunkStore
- func (c *ChunkStore) Close() error
- func (c *ChunkStore) Delete(_ context.Context, addr swarm.Address) error
- func (c *ChunkStore) Get(_ context.Context, addr swarm.Address) (swarm.Chunk, error)
- func (c *ChunkStore) Has(_ context.Context, addr swarm.Address) (bool, error)
- func (c *ChunkStore) Iterate(_ context.Context, fn storage.IterateChunkFn) error
- func (c *ChunkStore) Put(_ context.Context, ch swarm.Chunk) error
- func (c *ChunkStore) Replace(_ context.Context, ch swarm.Chunk) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChunkStore ¶
type ChunkStore struct {
// contains filtered or unexported fields
}
func New ¶
func New() *ChunkStore
func (*ChunkStore) Close ¶
func (c *ChunkStore) Close() error
func (*ChunkStore) Iterate ¶
func (c *ChunkStore) Iterate(_ context.Context, fn storage.IterateChunkFn) error
Click to show internal directories.
Click to hide internal directories.