Documentation ¶ Index ¶ Variables func NewProgram(m Model, fullScreen bool) *tea.Program type Model func NewModel(db *sql.DB) Model func (m Model) Init() tea.Cmd func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (m Model) View() string type Option Constants ¶ This section is empty. Variables ¶ View Source var ( UpdateInterval time.Duration AfterCompletion time.Duration RightMargin int = 10 ) Functions ¶ func NewProgram ¶ func NewProgram(m Model, fullScreen bool) *tea.Program Types ¶ type Model ¶ type Model struct { DB *sql.DB CreateIndex bool Vacuum bool Analyze bool Cluster bool BaseBackup bool // contains filtered or unexported fields } func NewModel ¶ func NewModel(db *sql.DB) Model func (Model) Init ¶ func (m Model) Init() tea.Cmd func (Model) Update ¶ func (m Model) Update(msg tea.Msg) (tea.Model, tea.Cmd) func (Model) View ¶ func (m Model) View() string type Option ¶ type Option func(*Model) error Source Files ¶ View all Source files progress.go Click to show internal directories. Click to hide internal directories.