Documentation
¶
Index ¶
- Constants
- func NewSyncManager(shard2 shard.Index, sn storageSyncContract, miner minerSyncContract, ...) isync.SyncManager
- func ProvideMinerSyncManager(shard2 shard.Index, miner minerSyncContract, pubSubMgr *message.PubSubManager) isync.SyncManager
- func ProvideStorageSyncManager(shard2 shard.Index, sn storageSyncContract, pubSubMgr *message.PubSubManager) isync.SyncManager
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.
Click to show internal directories.
Click to hide internal directories.