Documentation
¶
Index ¶
Constants ¶
const Height = 6
const ViewName = "systeminfo"
const Width = 40
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LatestVersionMsg ¶
type LatestVersionMsg struct {
LatestVersion string
}
LatestVersionMsg reports that the version API returned a newer release than the running build. The app layer reads LatestVersion to raise the startup update notice, so the field is exported.
type Model ¶
type Model struct {
// contains filtered or unexported fields
}
func (*Model) CheckLatestVersion ¶
func (*Model) Init ¶
Init starts the header's timers.
It seeds the resource-usage loop with the first collection rather than with a tick, because that loop re-arms its own tick from SlowStatusMsg (update.go): arming one here as well would leave two chains running, and the collection is a per-container fan-out at the other end of the Docker socket. One chain in, one chain out — a round cannot start while a round is running.
func (*Model) Latest ¶
Latest returns the newest release reported by the version check, or "" if none has been observed yet. The app reads it to populate the on-demand update notice (the proactive notice is driven by LatestVersionMsg directly).
func (*Model) LoadSlowStatus ¶
func (*Model) LoadStatus ¶
func (*Model) SetContent ¶
type NoVersionUpdateMsg ¶
type NoVersionUpdateMsg struct{}
type SlowStatusMsg ¶
type SlowStatusMsg struct {
// contains filtered or unexported fields
}
type SpinnerTickMsg ¶
type SystemInfoMsg ¶
type SystemInfoMsg interface {
// contains filtered or unexported methods
}
SystemInfoMsg is implemented by all messages owned by the systeminfo component. The app-level router uses this to forward messages without listing each type.