sync

package
v0.0.0-...-4f0ab6e Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2021 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// IDLE is a kind of status of syncState, which means waiting to sync.
	IDLE syncStatus = iota

	// RUNNING is a kind of status of syncState, which means is doing sync.
	RUNNING
)

Variables

This section is empty.

Functions

func NewSyncManager

func NewSyncManager(shard2 shard.Index, sn storageSyncContract, miner minerSyncContract, pubSubMgr *message.PubSubManager) isync.SyncManager

NewSyncManager creates a new SyncManager instance. shard is the given shard for this SyncManager to work on. sn is the StorageNode instance in this shard for storage node, nil for miner node. abc is the AppBlockChain instance in this shard for miner node, nil for storage node.

func ProvideMinerSyncManager

func ProvideMinerSyncManager(shard2 shard.Index, miner minerSyncContract, pubSubMgr *message.PubSubManager) isync.SyncManager

func ProvideStorageSyncManager

func ProvideStorageSyncManager(shard2 shard.Index, sn storageSyncContract, pubSubMgr *message.PubSubManager) isync.SyncManager

Types

This section is empty.

Jump to

Keyboard shortcuts

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