Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterCoreEngineProvider ¶
func RegisterCoreEngineProvider(consensusType string, cp CoreProvider)
RegisterCoreEngineProvider add a type to the coreEngineRegistry. If type already registered, will panic.
Types ¶
type CoreProvider ¶
type CoreProvider interface {
NewCoreEngine(config *config.CoreEngineConfig) (protocol.CoreEngine, error)
}
func NewCoreEngineProviderByConsensusType ¶
func NewCoreEngineProviderByConsensusType(consensusType string) CoreProvider
NewCoreEngineProviderByConsensusType create a new provider by name, returning it as CoreEngineProvider interface. If type not found, will panic.
Click to show internal directories.
Click to hide internal directories.