Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PeersAdd ¶
PeersAdd is the PeersAdd to start the sever
func (*PeersAdd) DefineFlags ¶
func (p *PeersAdd) DefineFlags()
func (*PeersAdd) GetBaseCommand ¶
func (*PeersAdd) GetHelperText ¶
GetHelperText returns a simple description of the command
type PeersAddResult ¶
type PeersAddResult struct {
NumRequested int `json:"num_requested"`
NumAdded int `json:"num_added"`
Peers []string `json:"peers"`
Errors []string `json:"errors"`
}
func (*PeersAddResult) Output ¶
func (r *PeersAddResult) Output() string
type PeersCommand ¶
type PeersCommand struct {
}
PeersCommand is the top level ibft command
func (*PeersCommand) GetBaseCommand ¶
func (c *PeersCommand) GetBaseCommand() string
func (*PeersCommand) Help ¶
func (c *PeersCommand) Help() string
Help implements the cli.Command interface
func (*PeersCommand) Run ¶
func (c *PeersCommand) Run(args []string) int
Run implements the cli.Command interface
func (*PeersCommand) Synopsis ¶
func (c *PeersCommand) Synopsis() string
Synopsis implements the cli.Command interface
type PeersList ¶
PeersList is the PeersList to start the sever
func (*PeersList) DefineFlags ¶
func (p *PeersList) DefineFlags()
DefineFlags defines the command flags
func (*PeersList) GetBaseCommand ¶
func (*PeersList) GetHelperText ¶
GetHelperText returns a simple description of the command
type PeersListResult ¶
type PeersListResult struct {
Peers []string `json:"peers"`
}
func NewPeersListResult ¶
func NewPeersListResult(resp *proto.PeersListResponse) *PeersListResult
func (*PeersListResult) Output ¶
func (r *PeersListResult) Output() string
type PeersStatus ¶
PeersStatus is the PeersStatus to start the sever
func (*PeersStatus) DefineFlags ¶
func (p *PeersStatus) DefineFlags()
func (*PeersStatus) GetBaseCommand ¶
func (p *PeersStatus) GetBaseCommand() string
func (*PeersStatus) GetHelperText ¶
func (p *PeersStatus) GetHelperText() string
GetHelperText returns a simple description of the command
func (*PeersStatus) Help ¶
func (p *PeersStatus) Help() string
Help implements the cli.PeersStatus interface
func (*PeersStatus) Run ¶
func (p *PeersStatus) Run(args []string) int
Run implements the cli.PeersStatus interface
func (*PeersStatus) Synopsis ¶
func (p *PeersStatus) Synopsis() string
Synopsis implements the cli.PeersStatus interface
type PeersStatusResult ¶
type PeersStatusResult struct {
ID string `json:"id"`
Protocols []string `json:"protocols"`
Addresses []string `json:"addresses"`
}
func (*PeersStatusResult) Output ¶
func (r *PeersStatusResult) Output() string