chunkstamp

package
v0.0.0-...-eb12069 Latest Latest
Warning

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

Go to latest
Published: Jul 5, 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, 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 Load

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