syncstatus

package
v1.14.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Package syncstatus renders sync connection status.

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 renders sync connection status.

func New

func New(theme styles.Theme, syncer powersync.Syncer, endpoint string) *Model

New creates a new sync status model.

func (*Model) CompactView

func (m *Model) CompactView() string

CompactView renders the sync status for the statusbar: "● api.usetero.com" or "● syncing 45%"

func (*Model) ExpandedView

func (m *Model) ExpandedView(width, _ int) string

ExpandedView renders the detailed sync status for the drawer.

func (*Model) Init

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

Init starts polling sync status.

func (*Model) SetDB

func (m *Model) SetDB(db sqlite.DB) tea.Cmd

SetDB sets the database for record count polling.

func (*Model) Update

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

Update handles messages.

Jump to

Keyboard shortcuts

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