Documentation ¶
Index ¶
- Variables
- type CliService
- func (cliService *CliService) Api() []app.API
- func (cliService *CliService) CommandFlags() ([]cli.Command, []cli.Flag)
- func (cliService *CliService) Init(executeContext *app.ExecuteContext) error
- func (cliService *CliService) Name() string
- func (cliService *CliService) P2pMessages() map[int]interface{}
- func (cliService *CliService) Receive(context actor.Context)
- func (cliService *CliService) Start(executeContext *app.ExecuteContext) error
- func (cliService *CliService) Stop(executeContext *app.ExecuteContext) error
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ConfigFileFlag = cli.StringFlag{
Name: "config",
Usage: "TODO add config description",
}
)
Functions ¶
This section is empty.
Types ¶
type CliService ¶
type CliService struct { Config *cliTypes.Config Log *log.LogService `service:"log"` Blockmgr *blockmgr.BlockMgr `service:"blockmgr"` AccountService *accountService.AccountService `service:"accounts"` RpcService *rpc2.RpcService `service:"rpc"` // contains filtered or unexported fields }
CliService provides an interactive command line window
func (*CliService) CommandFlags ¶
func (cliService *CliService) CommandFlags() ([]cli.Command, []cli.Flag)
Flags flags enable load js and execute before run
func (*CliService) Init ¶
func (cliService *CliService) Init(executeContext *app.ExecuteContext) error
Init set console config
func (*CliService) P2pMessages ¶
func (cliService *CliService) P2pMessages() map[int]interface{}
func (*CliService) Receive ¶
func (cliService *CliService) Receive(context actor.Context)
func (*CliService) Start ¶
func (cliService *CliService) Start(executeContext *app.ExecuteContext) error
func (*CliService) Stop ¶
func (cliService *CliService) Stop(executeContext *app.ExecuteContext) error
Click to show internal directories.
Click to hide internal directories.