status

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 2, 2022 License: Apache-2.0 Imports: 6 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StatusCommand

type StatusCommand struct {
	helper.Base
	Formatter *helper.FormatterFlag
	GRPC      *helper.GRPCFlag
}

StatusCommand is the command to show the version of the agent

func (*StatusCommand) DefineFlags

func (c *StatusCommand) DefineFlags()

DefineFlags defines the command flags

func (*StatusCommand) GetBaseCommand

func (c *StatusCommand) GetBaseCommand() string

func (*StatusCommand) GetHelperText

func (c *StatusCommand) GetHelperText() string

GetHelperText returns a simple description of the command

func (*StatusCommand) Help

func (c *StatusCommand) Help() string

Help implements the cli.Command interface

func (*StatusCommand) Run

func (c *StatusCommand) Run(args []string) int

Run implements the cli.Command interface

func (*StatusCommand) Synopsis

func (c *StatusCommand) Synopsis() string

Synopsis implements the cli.Command interface

type StatusResult

type StatusResult struct {
	ChainID            int64  `json:"chain_id"`
	CurrentBlockNumber int64  `json:"current_block_number"`
	CurrentBlockHash   string `json:"current_block_hash"`
	LibP2PAddress      string `json:"libp2p_address"`
}

func (*StatusResult) Output

func (r *StatusResult) Output() string

Jump to

Keyboard shortcuts

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