infobar

package
v0.0.0-...-3c352bc Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	InfoBarViewHeight   = 5
	SearchBarViewHeight = 2
)

InfoBarViewHeight info bar height

Variables

This section is empty.

Functions

This section is empty.

Types

type InfoBar

type InfoBar struct {
	*tview.Box
	// contains filtered or unexported fields
}

InfoBar implements the info bar primitive

func NewInfoBar

func NewInfoBar() *InfoBar

NewInfoBar returns info bar view

func (*InfoBar) Draw

func (info *InfoBar) Draw(screen tcell.Screen)

Draw draws this primitive onto the screen.

func (*InfoBar) UpdateBasicInfo

func (info *InfoBar) UpdateBasicInfo(hostname string, kernel string, ostype string)

UpdateBasicInfo updates hostname, kernel and os type values

func (*InfoBar) UpdateConnStatus

func (info *InfoBar) UpdateConnStatus(status bool)

UpdateConnStatus updates connection status value

func (*InfoBar) UpdateJava

func (info *InfoBar) UpdateJava(version string)

UpdateJava updates aws identity values

func (*InfoBar) UpdateSystemUsageInfo

func (info *InfoBar) UpdateSystemUsageInfo(memUsage float64, swapUsage float64)

UpdateSystemUsageInfo updates memory and swap values

Jump to

Keyboard shortcuts

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