chunkstamp

package
v2.2.0-rc1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 26, 2024 License: BSD-3-Clause Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Delete

func Delete(s storage.IndexStore, namespace string, addr swarm.Address, batchId []byte) error

Delete removes a stamp associated with an chunk and batchID.

func DeleteAll

func DeleteAll(s storage.IndexStore, namespace string, addr swarm.Address) error

DeleteAll removes all swarm.Stamp related to the given address.

func DeleteWithStamp

func DeleteWithStamp(
	writer storage.Writer,
	namespace string,
	addr swarm.Address,
	stamp swarm.Stamp,
) error

func Load

func Load(s storage.Reader, namespace string, addr swarm.Address) (swarm.Stamp, error)

Load returns first found swarm.Stamp related to the given address.

func LoadWithBatchID

func LoadWithBatchID(s storage.Reader, namespace string, addr swarm.Address, batchID []byte) (swarm.Stamp, error)

LoadWithBatchID returns swarm.Stamp related to the given address and batchID.

func Store

func Store(s storage.IndexStore, namespace string, chunk swarm.Chunk) error

Store creates new or updated an existing stamp index record related to the given namespace and chunk.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL