cli

package
v0.7.6 Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2024 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DisplayUnit

func DisplayUnit(value float64) string

Types

type App

type App struct {
	// contains filtered or unexported fields
}

func NewApp

func NewApp(cfg *AppConfig) *App

func (*App) InfoLoop

func (a *App) InfoLoop()

func (*App) MemoryLoop

func (a *App) MemoryLoop()

func (*App) MonitorLoop

func (a *App) MonitorLoop()

func (*App) Serve

func (a *App) Serve() error

type AppConfig

type AppConfig struct {
	Host      string
	Password  string
	Frequency time.Duration // Stats per commands and per IPs, every freq seconds
}

type AppUI

type AppUI struct {
	// contains filtered or unexported fields
}

func NewAppUI

func NewAppUI() *AppUI

func (*AppUI) Alert

func (a *AppUI) Alert(msg string)

type GraphBox

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

func NewGraphBox

func NewGraphBox() *GraphBox

func (*GraphBox) Draw

func (g *GraphBox) Draw(screen tcell.Screen)

func (*GraphBox) GetInnerRect

func (g *GraphBox) GetInnerRect() (int, int, int, int)

func (*GraphBox) SetSeries

func (g *GraphBox) SetSeries(series []float64)

type Logger

type Logger struct {
	// contains filtered or unexported fields
}

func (*Logger) Printf

func (l *Logger) Printf(tpl string, args ...interface{})

Jump to

Keyboard shortcuts

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