monitor

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jan 27, 2022 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChainEvents

type BlockChainEvents struct {
	Added   []BlockchainEvent `json:"added"`
	Removed []BlockchainEvent `json:"removed"`
}

type BlockEventResult

type BlockEventResult struct {
	Events BlockChainEvents `json:"events"`
}

func NewBlockEventResult

func NewBlockEventResult(e *proto.BlockchainEvent) *BlockEventResult

func (*BlockEventResult) Output

func (r *BlockEventResult) Output() string

type BlockchainEvent

type BlockchainEvent struct {
	Type   string `json:"type"`
	Number int64  `json:"number"`
	Hash   string `json:"hash"`
}

type MonitorCommand

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

MonitorCommand is the command to Monitor to the blockchain events

func (*MonitorCommand) DefineFlags

func (m *MonitorCommand) DefineFlags()

DefineFlags defines the command flags

func (*MonitorCommand) GetBaseCommand

func (m *MonitorCommand) GetBaseCommand() string

func (*MonitorCommand) GetHelperText

func (m *MonitorCommand) GetHelperText() string

GetHelperText returns a simple description of the command

func (*MonitorCommand) Help

func (m *MonitorCommand) Help() string

Help implements the cli.Command interface

func (*MonitorCommand) Run

func (m *MonitorCommand) Run(args []string) int

Run implements the cli.Command interface

func (*MonitorCommand) Synopsis

func (m *MonitorCommand) Synopsis() string

Synopsis implements the cli.Command interface

Jump to

Keyboard shortcuts

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