Documentation ¶
Index ¶
- Variables
- type ConsensusConfig
- type ConsensusService
- func (consensusService *ConsensusService) Api() []app.API
- func (consensusService *ConsensusService) CommandFlags() ([]cli.Command, []cli.Flag)
- func (consensusService *ConsensusService) Init(executeContext *app.ExecuteContext) error
- func (consensusService *ConsensusService) Name() string
- func (consensusService *ConsensusService) SelectService() app.Service
- func (consensusService *ConsensusService) Start(executeContext *app.ExecuteContext) error
- func (consensusService *ConsensusService) Stop(executeContext *app.ExecuteContext) error
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
Click to show internal directories.
Click to hide internal directories.