provider

package
v0.0.0-...-bda353b Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

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.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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