ui

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2020 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BLOCK_WIDTH = 22
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Block added in v0.0.2

type Block client.Block

func (Block) Print added in v0.0.2

func (b Block) Print(n int, x, _y int) []byte

type Box added in v0.0.2

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

func (*Box) Append added in v0.0.2

func (b *Box) Append(s string) *Box

func (*Box) Printf added in v0.0.2

func (b *Box) Printf(c color.Attribute, f string, args ...interface{}) *Box

func (*Box) Render added in v0.0.2

func (b *Box) Render(full int, bg color.Attribute) []byte

type FeeDistribution added in v0.0.4

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

func NewFeeDistribution added in v0.0.4

func NewFeeDistribution(g *gocui.Gui) *FeeDistribution

func (*FeeDistribution) FetchBlock added in v0.0.4

func (fd *FeeDistribution) FetchBlock(n int) error

func (*FeeDistribution) FetchProjection added in v0.0.4

func (fd *FeeDistribution) FetchProjection(n int) error

func (*FeeDistribution) Layout added in v0.0.4

func (fd *FeeDistribution) Layout(g *gocui.Gui) error

type MempoolBlock added in v0.1.0

type MempoolBlock client.MempoolBlock

func (MempoolBlock) Print added in v0.1.0

func (b MempoolBlock) Print(n int, x, _y int) []byte

type TXSearch added in v0.0.5

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

func NewTXSearch added in v0.0.5

func NewTXSearch(gui *gocui.Gui) *TXSearch

func (*TXSearch) Callback added in v0.0.5

func (s *TXSearch) Callback(fn func(txId string) error)

func (*TXSearch) Close added in v0.0.5

func (s *TXSearch) Close()

func (*TXSearch) Layout added in v0.0.5

func (s *TXSearch) Layout(g *gocui.Gui) error

func (*TXSearch) Open added in v0.0.5

func (s *TXSearch) Open()

func (*TXSearch) SetKeybinding added in v0.0.5

func (s *TXSearch) SetKeybinding()

type UI

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

func New

func New() (*UI, error)

func (*UI) Close

func (ui *UI) Close()

func (*UI) Layout

func (ui *UI) Layout(g *gocui.Gui) error

func (*UI) Loop

func (ui *UI) Loop() error

func (*UI) Render

func (ui *UI) Render(resp *client.Response)

Jump to

Keyboard shortcuts

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