constants

package
v0.5.0 Latest Latest
Warning

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

Go to latest
Published: Dec 31, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const ConfirmSelectionActionsThreshold = 5

ConfirmSelectionActionsThreshold controls the number of actions that require confirmation before executing

View Source
const LeftPageWidthFraction = 2. / 5.

LeftPageWidthFraction controls the width of the left page as a fraction of the terminal width

View Source
const MinCharsEachSideShortNames = 2

MinCharsEachSideShortNames controls the minimum number of characters to show on each side of container shortnames

View Source
const NewContainerThreshold = 3 * time.Minute

NewContainerThreshold controls when a container is annotated as new in the tree

Variables

View Source
var AnsiRegex = regexp.MustCompile("\x1b\\[[0-9;]*m")
View Source
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

View Source
var AttemptUpdateSinceTimeInterval = 500 * time.Millisecond

AttemptUpdateSinceTimeInterval controls the cadence at which a "since time" update is attempted

View Source
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

View Source
var EmptySequenceRegex = regexp.MustCompile("\x1b\\[[0-9;]+m\x1b\\[m")
View Source
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

View Source
var InitialLookbackMins = 1

InitialLookbackMins controls the initial number of minutes to look back in logs

View Source
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

View Source
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.

Jump to

Keyboard shortcuts

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