Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 LoadOrStore ¶
func LoadOrStore( s storage.IndexStore, scope 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.
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.