service

package
v0.0.0-...-a173fca Latest Latest
Warning

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

Go to latest
Published: Mar 1, 2021 License: LGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ConsensusModeFlag = cli.BoolFlag{
		Name:  "consensusmode",
		Usage: "specify consensus mod(solo bft...)",
	}
)

Functions

This section is empty.

Types

type ConsensusConfig

type ConsensusConfig struct {
	ConsensusMode params.NetType   `json:"consensusMode"`
	Solo          *solo.SoloConfig `json:"solo,omitempty"`
	Bft           *bft.BftConfig   `json:"bft,omitempty"`
}

type ConsensusService

type ConsensusService struct {
	SoloService *solo.SoloConsensusService
	BftService  *bft.BftConsensusService
	Config      *ConsensusConfig
}

func (*ConsensusService) Api

func (consensusService *ConsensusService) Api() []app.API

func (*ConsensusService) CommandFlags

func (consensusService *ConsensusService) CommandFlags() ([]cli.Command, []cli.Flag)

func (*ConsensusService) DefaultConfig

func (consensusService *ConsensusService) DefaultConfig(netType params.NetType) *ConsensusConfig

func (*ConsensusService) Init

func (consensusService *ConsensusService) Init(executeContext *app.ExecuteContext) error

func (*ConsensusService) Name

func (consensusService *ConsensusService) Name() string

func (*ConsensusService) SelectService

func (consensusService *ConsensusService) SelectService() app.Service

func (*ConsensusService) Start

func (consensusService *ConsensusService) Start(executeContext *app.ExecuteContext) error

func (*ConsensusService) Stop

func (consensusService *ConsensusService) Stop(executeContext *app.ExecuteContext) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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