blockselect

package
v1.9.3 Latest Latest
Warning

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

Go to latest
Published: Jul 26, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BlockChangedMsg added in v1.1.1

type BlockChangedMsg uint64

type BlockSelect

type BlockSelect struct {
	common.Common

	BlocksWithData []uint64
	// contains filtered or unexported fields
}

func New

func New(c common.Common) *BlockSelect

func (*BlockSelect) Init

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

func (*BlockSelect) SetActiveBlock

func (b *BlockSelect) SetActiveBlock(blockNum uint64)

func (*BlockSelect) SetAvailableBlocks

func (b *BlockSelect) SetAvailableBlocks(blocks []uint64)

func (*BlockSelect) StretchBounds

func (b *BlockSelect) StretchBounds(low, high uint64)

func (*BlockSelect) Update

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

func (*BlockSelect) View

func (b *BlockSelect) View() string

type JumpToBlockMsg added in v1.1.1

type JumpToBlockMsg uint64

Jump to

Keyboard shortcuts

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