tui

package
v0.0.20 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2022 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Connecting msg = iota
	Connected

	Quit
)

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockMessage

type BlockMessage string

type DeltaWrap added in v0.0.14

type DeltaWrap struct {
	Operation string          `json:"op"`
	Ordinal   uint64          `json:"ordinal"`
	Key       string          `json:"key"`
	OldValue  json.RawMessage `json:"old"`
	NewValue  json.RawMessage `json:"new"`
}

type DeltasWrap added in v0.0.14

type DeltasWrap struct {
	Module   string      `json:"@module"`
	BlockNum uint64      `json:"@block,omitempty"`
	Deltas   []DeltaWrap `json:"@deltas"`
}

type ErrorWrap added in v0.0.14

type ErrorWrap struct {
	Module string `json:"@module,omitempty"`
	Error  string `json:"@error"`
	String string `json:"@str"`
	Bytes  []byte `json:"@bytes"`
}

type ModuleWrap added in v0.0.14

type ModuleWrap struct {
	Module   string          `json:"@module"`
	BlockNum uint64          `json:"@block"`
	Type     string          `json:"@type"`
	Data     json.RawMessage `json:"@data"`
}

type SnapshotDeltaWrap added in v0.0.14

type SnapshotDeltaWrap struct {
	Module   string    `json:"@module"`
	Progress string    `json:"@progress"`
	Delta    DeltaWrap `json:"@delta"`
}

type TUI

type TUI struct {
	// contains filtered or unexported fields
}

func New

func New(req *pbsubstreams.Request, pkg *pbsubstreams.Package, outputStreamNames []string) *TUI

func (*TUI) Cancel

func (ui *TUI) Cancel()

func (*TUI) CleanUpTerminal

func (ui *TUI) CleanUpTerminal()

func (*TUI) Connected

func (ui *TUI) Connected()

func (*TUI) Connecting

func (ui *TUI) Connecting()

func (*TUI) IncomingMessage

func (ui *TUI) IncomingMessage(resp *pbsubstreams.Response) error

func (*TUI) Init

func (ui *TUI) Init(outputMode string) error

func (*TUI) SetRequest

func (ui *TUI) SetRequest(req *pbsubstreams.Request)

type UnknownWrap added in v0.0.14

type UnknownWrap struct {
	Module      string `json:"@module"`
	UnknownType string `json:"@unknown"`
	String      string `json:"@str"`
	Bytes       []byte `json:"@bytes"`
}

Jump to

Keyboard shortcuts

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