factory

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 21, 2022 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Factory

type Factory struct {
	// contains filtered or unexported fields
}

Factory is responsible for creating instances of decided strategies

func NewDecidedFactory

func NewDecidedFactory(logger *zap.Logger, mode strategy.Mode, decidedStore qbftstorage.DecidedMsgStore, network p2pprotocol.Network) *Factory

NewDecidedFactory creates a new instance of Factory

func (*Factory) GetStrategy

func (f *Factory) GetStrategy() strategy.Decided

GetStrategy returns the decided strategy

Jump to

Keyboard shortcuts

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