messages

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2026 License: MIT Imports: 2 Imported by: ? modules, 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

Package messages holds the tea.Msg types the commands answer with.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BuildInfoMsg

type BuildInfoMsg struct {
	Info loki.BuildInfo
	Err  error
}

BuildInfoMsg carries the version of the server.

type ClipboardCopiedMsg

type ClipboardCopiedMsg struct {
	Text string
	Err  error
}

ClipboardCopiedMsg reports a copy to the system clipboard.

type ClockTickMsg

type ClockTickMsg struct {
	Gen uint64
}

ClockTickMsg redraws what changes with the time, like the rate and a retry countdown.

type LabelsLoadedMsg

type LabelsLoadedMsg struct {
	Labels []string
	Err    error
}

LabelsLoadedMsg carries the label names of the picker's range.

type OlderLoadedMsg

type OlderLoadedMsg struct {
	Gen     uint64
	Start   time.Time
	End     time.Time
	Entries []loki.Entry
	Err     error
}

OlderLoadedMsg carries the entries before End, for scrolling past the top of the tail.

type StatusClearMsg

type StatusClearMsg struct {
	Gen int
}

StatusClearMsg clears the footer status, unless a newer one replaced it.

type TailMsg

type TailMsg struct {
	Gen     uint64
	Entries []loki.Entry
	Dropped int
	State   loki.FollowState
	Err     error
	RetryAt time.Time
	Closed  bool
}

TailMsg carries what a follow reported since the last one: its entries, oldest first, the number of entries the server dropped, and the latest state. Closed is set once the follow ended.

type ValuesLoadedMsg

type ValuesLoadedMsg struct {
	Label     string
	Scope     string
	Values    []string
	Volumes   map[string]uint64
	VolumeErr error
	Err       error
}

ValuesLoadedMsg carries the values of a label, of the streams scope selects, with the bytes each value ingested when the server reports volumes.

type ValuesTickMsg

type ValuesTickMsg struct {
	Gen uint64
}

ValuesTickMsg asks for the values of a label once the cursor has rested on it.

Jump to

Keyboard shortcuts

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