package
Version:
v0.0.0-...-eb12069
Opens a new window with list of versions in this module.
Published: Jul 5, 2023
License: BSD-3-Clause
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
-
func Delete(s storage.Store, namespace string, addr swarm.Address, batchId []byte) error
-
func DeleteAll(s storage.Store, namespace string, addr swarm.Address) error
-
func Load(s storage.Store, namespace string, addr swarm.Address) (swarm.Stamp, error)
-
func LoadWithBatchID(s storage.Store, namespace string, addr swarm.Address, batchID []byte) (swarm.Stamp, error)
-
func Store(s storage.Store, namespace string, chunk swarm.Chunk) error
Delete removes a stamp associated with an chunk and batchID.
DeleteAll removes all swarm.Stamp related to the given address.
Load returns first found swarm.Stamp related to the given address.
The storage.ErrNoStampsForChunk is returned if no record is found.
LoadWithBatchID returns swarm.Stamp related to the given address and batchID.
The storage.ErrNoStampsForChunk is returned if no record is found.
Store creates new or updated an existing stamp index
record related to the given namespace and chunk.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.