chunkstamp

package
v1.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 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.Store, batch storage.Writer, namespace string, addr swarm.Address, batchId []byte) error

Delete removes a stamp associated with an chunk and batchID.

func DeleteAll

func DeleteAll(s storage.Store, 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. The storage.ErrNoStampsForChunk is returned if no record is found.

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. The storage.ErrNoStampsForChunk is returned if no record is found.

func Store

func Store(s storage.Writer, 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