watch

package
v0.0.35 Latest Latest
Warning

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

Go to latest
Published: Oct 21, 2026 License: BSD-3-Clause Imports: 10 Imported by: 1 module, 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

Overview

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

SPDX-FileCopyrightText: 2026 Outscale SAS <opensource@outscale.com>

SPDX-License-Identifier: BSD-3-Clause

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run[Error error](ctx context.Context, fmter format.Interface, fn func(ctx context.Context) error, interval time.Duration) error

Run runs the watcher.

Types

type Format

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

func NewFormat

func NewFormat(fmter format.Interface) *Format

func (*Format) Error

func (m *Format) Error(ctx context.Context, v any) error

Error implements format.Interface.

func (*Format) Format

func (m *Format) Format(ctx context.Context, w io.Writer, v any) error

Format implements format.Interface. It does not display anything, as output is managed by Bubbletea through the View() method.

func (*Format) Init

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

Init implements tea.Model.

func (*Format) Update

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

Update implements tea.Model.

func (*Format) View

func (m *Format) View() string

View implements tea.Model.

type RefreshMsg

type RefreshMsg struct{}

Jump to

Keyboard shortcuts

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