Documentation ¶
Index ¶
- func Delete(s storage.IndexStore, scope string, addr swarm.Address, batchId []byte) error
- func DeleteAll(s storage.IndexStore, scope string, addr swarm.Address) error
- func DeleteWithStamp(writer storage.Writer, scope string, addr swarm.Address, stamp swarm.Stamp) error
- func Load(s storage.Reader, scope string, addr swarm.Address) (swarm.Stamp, error)
- func LoadWithBatchID(s storage.Reader, scope string, addr swarm.Address, batchID []byte) (swarm.Stamp, error)
- func LoadWithStampHash(s storage.Reader, scope string, addr swarm.Address, hash []byte) (swarm.Stamp, error)
- func Store(s storage.IndexStore, scope string, chunk swarm.Chunk) error
- type Item
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWithStamp ¶
func LoadWithBatchID ¶
func LoadWithBatchID(s storage.Reader, scope string, addr swarm.Address, batchID []byte) (swarm.Stamp, error)
LoadWithBatchID returns swarm.Stamp related to the given address and batchID.
Types ¶
type Item ¶ added in v2.2.0
type Item struct {
// contains filtered or unexported fields
}
Item is the index used to represent a stamp for a chunk.
Going ahead we will support multiple stamps on chunks. This Item will allow mapping multiple stamps to a single address. For this reason, the address is part of the Namespace and can be used to iterate on all the stamps for this address.
func (*Item) Marshal ¶ added in v2.2.0
Marshal implements the storage.Item interface. address is not part of the payload which is stored, as address is part of the prefix, hence already known before querying this object. This will be reused during unmarshaling.
Click to show internal directories.
Click to hide internal directories.