Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func DeleteWithStamp ¶
DeleteWithStamp removes the related stamp index record from the storage.
Types ¶
type Item ¶
type Item struct { BatchID []byte StampIndex []byte StampHash []byte // Values. StampTimestamp []byte ChunkAddress swarm.Address // contains filtered or unexported fields }
Item is an store.Item that represents data relevant to stamp.
func Load ¶
Load returns stamp index record related to the given namespace and chunk. The storage.ErrNotFound is returned if no record is found.
func LoadOrStore ¶
func LoadOrStore( s storage.IndexStore, namespace string, chunk swarm.Chunk, ) (item *Item, loaded bool, err error)
LoadOrStore tries to first load a stamp index related record from the store. If the record is not found, it will try to create and save a new record and return it.
func LoadWithStamp ¶
LoadWithStamp returns stamp index record related to the given namespace and stamp.
func (Item) GetNamespace ¶
func (*Item) SetNamespace ¶
type ItemV1 ¶ added in v2.2.0
type ItemV1 struct { BatchID []byte StampIndex []byte // Values. StampTimestamp []byte ChunkAddress swarm.Address ChunkIsImmutable bool // contains filtered or unexported fields }
ItemV1 is an store.Item that represents data relevant to stamp.
func (*ItemV1) SetNamespace ¶ added in v2.2.0
Click to show internal directories.
Click to hide internal directories.