Documentation ¶
Index ¶
Constants ¶
const ConfirmSelectionActionsThreshold = 5
ConfirmSelectionActionsThreshold controls the number of actions that require confirmation before executing
const LeftPageWidthFraction = 2. / 5.
LeftPageWidthFraction controls the width of the left page as a fraction of the terminal width
const MinCharsEachSideShortNames = 2
MinCharsEachSideShortNames controls the minimum number of characters to show on each side of container shortnames
const NewContainerThreshold = 3 * time.Minute
NewContainerThreshold controls when a container is annotated as new in the tree
Variables ¶
var AnsiRegex = regexp.MustCompile("\x1b\\[[0-9;]*m")
var AttemptMaintainEntitySelectionAfterFirstContainer = 1 * time.Second
AttemptMaintainEntitySelectionAfterFirstContainer controls how long to delay after the first container before attempting to maintain the currently selected Entity in the tree. The thinking goes that the tree may not be fully populated yet and the user won't even have time to orient themselves and then the selection is somewhere in the middle of the tree. But after a short amount of time, they will have actively selected something and we can try to maintain that selection
var AttemptUpdateSinceTimeInterval = 500 * time.Millisecond
AttemptUpdateSinceTimeInterval controls the cadence at which a "since time" update is attempted
var BatchUpdateLogsInterval = 200 * time.Millisecond
BatchUpdateLogsInterval controls the cadence at which the main Model actually updates the logs page with all the newly acquired logs from all the containers. In between updates, it accumulates logs from received messages
var EmptySequenceRegex = regexp.MustCompile("\x1b\\[[0-9;]+m\x1b\\[m")
var GetNextContainerDeltasDuration = 300 * time.Millisecond
GetNextContainerDeltasDuration controls the amount of time a container listener will collect containers deltas before returning them to the main Model via a tea.Msg
var InitialLookbackMins = 1
InitialLookbackMins controls the initial number of minutes to look back in logs
var KeyPressToLookbackMins = map[int]int{
0: 0,
1: 1,
2: 5,
3: 15,
4: 30,
5: 60,
6: 180,
7: 720,
8: 1440,
9: -1,
}
KeyPressToLookbackMins maps the keyboard number keys to minutes of log lookback
var SingleContainerLogCollectionDuration = 150 * time.Millisecond
SingleContainerLogCollectionDuration controls the amount of time an individual container's log scanner will collect logs for before returning them to the main Model via a tea.Msg
Functions ¶
This section is empty.
Types ¶
This section is empty.