ranges

package
v1.1.22 Latest Latest
Warning

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

Go to latest
Published: Dec 1, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Bar

type Bar struct {
	common.Common
	// contains filtered or unexported fields
}

func NewBar

func NewBar(c common.Common, name string, targetEndBlock uint64) *Bar

func (*Bar) Init

func (b *Bar) Init() tea.Cmd

func (*Bar) RangeView added in v1.1.1

func (b *Bar) RangeView(long bool) string

func (*Bar) Update

func (b *Bar) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Bar) View

func (b *Bar) View() string

type Bars

type Bars struct {
	common.Common

	TotalBlocks uint64
	BarCount    uint64

	Mode int
	// contains filtered or unexported fields
}

func NewBars

func NewBars(c common.Common, targetBlock uint64) *Bars

func (*Bars) Init

func (b *Bars) Init() tea.Cmd

func (*Bars) NewBar added in v1.1.12

func (b *Bars) NewBar(displayedName string, ranges []*BlockRange, modules []string) *Bar

func (*Bars) SetSize

func (b *Bars) SetSize(w, h int)

func (*Bars) Update

func (b *Bars) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*Bars) View

func (b *Bars) View() string

type BlockRange added in v1.1.12

type BlockRange struct {
	Start uint64
	End   uint64
}

func (BlockRange) String added in v1.1.12

func (b BlockRange) String() string

Jump to

Keyboard shortcuts

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