interactive

package
v0.0.0-debug-20260702 Latest Latest
Warning

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

Go to latest
Published: Jul 2, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

Run starts the interactive checkpoint viewer

Types

type AccountListProvider

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

func (*AccountListProvider) GetOverview

func (p *AccountListProvider) GetOverview() string

func (*AccountListProvider) GetRowNums

func (p *AccountListProvider) GetRowNums() []string

func (*AccountListProvider) GetRows

func (p *AccountListProvider) GetRows() [][]string

type CheckpointListProvider

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

func (*CheckpointListProvider) GetOverview

func (p *CheckpointListProvider) GetOverview() string

func (*CheckpointListProvider) GetRowNums

func (p *CheckpointListProvider) GetRowNums() []string

func (*CheckpointListProvider) GetRows

func (p *CheckpointListProvider) GetRows() [][]string

type State

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

State manages checkpoint viewer state

func NewState

func NewState(reader *checkpointtool.CheckpointReader) *State

NewState creates a new state

func (*State) Accounts

func (s *State) Accounts() []*checkpointtool.AccountInfo

Accounts returns unique accounts from tables

func (*State) ClearAccountFilter

func (s *State) ClearAccountFilter()

ClearAccountFilter clears account filter

func (*State) DataEntries

func (s *State) DataEntries() []*checkpointtool.ObjectEntryInfo

func (*State) Entries

func (s *State) Entries() []*checkpoint.CheckpointEntry

func (*State) FilteredTables

func (s *State) FilteredTables() []*checkpointtool.TableInfo

FilteredTables returns tables filtered by account id

func (*State) GetAccountFilter

func (s *State) GetAccountFilter() int64

func (*State) GetSelectedTable

func (s *State) GetSelectedTable() *checkpointtool.TableInfo

GetSelectedTable returns the currently selected table

func (*State) HasAccountFilter

func (s *State) HasAccountFilter() bool

func (*State) Mode

func (s *State) Mode() ViewMode

func (*State) SelectTable

func (s *State) SelectTable(tableID uint64) error

SelectTable loads object entries for selected table

func (*State) SetAccountFilter

func (s *State) SetAccountFilter(accountID int64)

SetAccountFilter sets account filter

func (*State) SwitchToTables

func (s *State) SwitchToTables() error

SwitchToTables loads tables for selected entry

func (*State) TombEntries

func (s *State) TombEntries() []*checkpointtool.ObjectEntryInfo

type TableDetailProvider

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

func (*TableDetailProvider) GetOverview

func (p *TableDetailProvider) GetOverview() string

func (*TableDetailProvider) GetRowNums

func (p *TableDetailProvider) GetRowNums() []string

func (*TableDetailProvider) GetRows

func (p *TableDetailProvider) GetRows() [][]string

type TablesListProvider

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

func (*TablesListProvider) GetOverview

func (p *TablesListProvider) GetOverview() string

func (*TablesListProvider) GetRowNums

func (p *TablesListProvider) GetRowNums() []string

func (*TablesListProvider) GetRows

func (p *TablesListProvider) GetRows() [][]string

type UnifiedModel

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

UnifiedModel uses GenericPage for all views

func NewUnifiedModel

func NewUnifiedModel(reader *checkpointtool.CheckpointReader) *UnifiedModel

NewUnifiedModel creates a new unified model

func (*UnifiedModel) ClearObjectToOpen

func (m *UnifiedModel) ClearObjectToOpen()

ClearObjectToOpen clears the object to open flag

func (*UnifiedModel) GetObjectToOpen

func (m *UnifiedModel) GetObjectToOpen() string

GetObjectToOpen returns the object path to open (if any)

func (*UnifiedModel) GetRangeToOpen

func (m *UnifiedModel) GetRangeToOpen() *ckputil.TableRange

GetRangeToOpen returns the range to open (if any)

func (*UnifiedModel) Init

func (m *UnifiedModel) Init() tea.Cmd

func (*UnifiedModel) Update

func (m *UnifiedModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (*UnifiedModel) View

func (m *UnifiedModel) View() string

type ViewMode

type ViewMode int

ViewMode represents the current view

const (
	ViewModeList  ViewMode = iota // Checkpoint list
	ViewModeTable                 // Tables list
)

Jump to

Keyboard shortcuts

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