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 ¶
BuildInfoMsg carries the version of the server.
type ClipboardCopiedMsg ¶
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 ¶
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.