Documentation ¶
Index ¶
- func AfterInitSteps(sharkyPath string, sharkyNoOfShards int, chunkStore storage.ChunkStore) migration.Steps
- func BeforeIinitSteps() migration.Steps
- func RefCountSizeInc(s storage.BatchedStore) error
- type OldRetrievalIndexItem
- func (r *OldRetrievalIndexItem) Clone() storage.Item
- func (r *OldRetrievalIndexItem) ID() string
- func (r *OldRetrievalIndexItem) Marshal() ([]byte, error)
- func (OldRetrievalIndexItem) Namespace() string
- func (r OldRetrievalIndexItem) String() string
- func (r *OldRetrievalIndexItem) Unmarshal(buf []byte) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AfterInitSteps ¶ added in v1.17.4
func AfterInitSteps( sharkyPath string, sharkyNoOfShards int, chunkStore storage.ChunkStore, ) migration.Steps
AfterInitSteps lists all migration steps for localstore IndexStore after the localstore is intiated.
func BeforeIinitSteps ¶ added in v1.17.4
BeforeIinitSteps lists all migration steps for localstore IndexStore before the localstore is intiated.
func RefCountSizeInc ¶ added in v1.17.4
func RefCountSizeInc(s storage.BatchedStore) error
Types ¶
type OldRetrievalIndexItem ¶ added in v1.17.4
type OldRetrievalIndexItem struct { Address swarm.Address Timestamp uint64 Location sharky.Location RefCnt uint8 }
OldRetrievalIndexItem is the index which gives us the sharky location from the swarm.Address. The RefCnt stores the reference of each time a Put operation is issued on this Address.
func (*OldRetrievalIndexItem) Clone ¶ added in v1.17.4
func (r *OldRetrievalIndexItem) Clone() storage.Item
func (*OldRetrievalIndexItem) ID ¶ added in v1.17.4
func (r *OldRetrievalIndexItem) ID() string
func (*OldRetrievalIndexItem) Marshal ¶ added in v1.17.4
func (r *OldRetrievalIndexItem) Marshal() ([]byte, error)
Stored in bytes as: |--Address(32)--|--Timestamp(8)--|--Location(7)--|--RefCnt(1)--|
func (OldRetrievalIndexItem) Namespace ¶ added in v1.17.4
func (OldRetrievalIndexItem) Namespace() string
func (OldRetrievalIndexItem) String ¶ added in v1.17.4
func (r OldRetrievalIndexItem) String() string
func (*OldRetrievalIndexItem) Unmarshal ¶ added in v1.17.4
func (r *OldRetrievalIndexItem) Unmarshal(buf []byte) error
Click to show internal directories.
Click to hide internal directories.