icontroller

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: 4 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IShardController

type IShardController interface {
	// NotifyNewPeerAdded sends new peer added information to mtvSyncMgr
	NotifyNewPeerAdded(cp *connection.ConnPeer, t config.NodeType)
	// NotifyPeerDone sends the new-done information to syncManager.
	NotifyPeerDone(cp *connection.ConnPeer, t config.NodeType)
	// HandleRPCReq handles a RPCReq for the relevant shard.
	HandleRPCReq(req *message.RPCReq) *message.RPCResp
	// ShardIndex returns the index of the shardController
	ShardIndex() shard.Index
	// IsEnabled returns if the processor is in working.
	IsEnabled() bool
}

IShardController defines the local interface which serves as the entry for business logic in a particular shard.

Jump to

Keyboard shortcuts

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