Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
Model encapsulates state that updates a view.
func NewModel ¶
func NewModel( querySvc QueryService, databasePath string, schemaVersion string, schemaDate time.Time, testCases []blockdb.TestCaseResult, ) *Model
NewModel returns a valid *Model.
func (*Model) Update ¶
Update should be the argument for *(tview.Application).SetInputCapture. The Model potentially updates view state based on the event. Update must be called from the main goroutine. Otherwise, view updates will not render or cause data races. Per tview documentation, return nil to stop event propagation.
Source Files ¶
Click to show internal directories.
Click to hide internal directories.