migration

package
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: BSD-3-Clause Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AfterInitSteps

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

func BeforeIinitSteps() migration.Steps

BeforeIinitSteps lists all migration steps for localstore IndexStore before the localstore is intiated.

func RefCountSizeInc

func RefCountSizeInc(s storage.BatchedStore) error

Types

type OldRetrievalIndexItem

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

func (r *OldRetrievalIndexItem) Clone() storage.Item

func (*OldRetrievalIndexItem) ID

func (r *OldRetrievalIndexItem) ID() string

func (*OldRetrievalIndexItem) Marshal

func (r *OldRetrievalIndexItem) Marshal() ([]byte, error)

Stored in bytes as: |--Address(32)--|--Timestamp(8)--|--Location(7)--|--RefCnt(1)--|

func (OldRetrievalIndexItem) Namespace

func (OldRetrievalIndexItem) Namespace() string

func (OldRetrievalIndexItem) String

func (r OldRetrievalIndexItem) String() string

func (*OldRetrievalIndexItem) Unmarshal

func (r *OldRetrievalIndexItem) Unmarshal(buf []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL