service

package
v0.0.0-...-9faecf3 Latest Latest
Warning

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

Go to latest
Published: May 13, 2020 License: LGPL-3.0 Imports: 4 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 string           `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) 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