Documentation ¶
Index ¶
- Variables
- func AcceptFloat(textToCheck string, lastChar rune) bool
- func AcceptHex(textToCheck string, lastChar rune) bool
- func AcceptIPv4(textToCheck string, lastChar rune) bool
- func AcceptIPv4CiDR(textToCheck string, lastChar rune) bool
- func AcceptMac(textToCheck string, lastChar rune) bool
- func AcceptNumber(textToCheck string, lastChar rune) bool
- func AddModalPage(title string, modal interface{})
- func Application() string
- func BitRate(ioPkts, ioBytes uint64) float64
- func BuildDate() string
- func Center(width, height int, p kview.Primitive) *kview.Flex
- func CommandInfo(color bool) string
- func Copyright() string
- func CreateForm(flex *kview.Flex, msg TextInfo, fixedSize, proportion int, focus bool) *kview.Form
- func CreateList(flex *kview.Flex, msg TextInfo, fixedSize, proportion int, focus bool) *kview.List
- func CreateModal(p kview.Primitive, width, height int) kview.Primitive
- func CreateTabOrder(app *kview.Application, panelName string, data []tab.TabData) (*tab.Tab, error)
- func CreateTableView(flex *kview.Flex, msg TextInfo, fixedSize, proportion int, focus bool) *kview.Table
- func CreateTextView(flex *kview.Flex, msg TextInfo, fixedSize, proportion int, focus bool) *kview.TextView
- func Format(units []string, v uint64, w ...interface{}) string
- func FormatBytes(v uint64, w ...interface{}) string
- func FormatUnits(v uint64, w ...interface{}) string
- func NumCPUs() int
- func ParseNumberFloat64(text string, val *float64) error
- func ParseNumberUint16(text string, val *uint16) error
- func ParseNumberUint64(text string, val *uint64) error
- func SetCell(table *kview.Table, row, col int, msg TextInfo, selectable bool) *kview.TableCell
- func SetupSignals(signals ...os.Signal)
- func TableCellSelect(table *kview.Table, row, col int, v TextInfo) int
- func TableCellSet(table *kview.Table, row, col int, v TextInfo) int
- func TableSetHeaders(table *kview.Table, row, col int, titles []TextInfo) int
- func TableSetRows(table *kview.Table, row, col int, titles []TextInfo) int
- func TitleBox(flex *kview.Flex, text string) *kview.TextView
- func TitleColor(msg string) string
- func Version() string
- type ModalPage
- type TextInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var ( VersionStr string = "24.10.0" ApplicationStr string = "Go-pktgen Traffic Generator" CopyrightStr string = "Copyright © 2023-2025 Intel Corporation" BuildDateStr string = "" )
Functions ¶
func AcceptFloat ¶
func AcceptIPv4 ¶
func AcceptIPv4CiDR ¶
func AcceptNumber ¶
func AddModalPage ¶
func AddModalPage(title string, modal interface{})
func Center ¶
Center returns a new primitive which shows the provided primitive in its center, given the provided primitive's size.
func CommandInfo ¶
CommandInfo returning the basic information string
func CreateForm ¶
CreateForm window
func CreateList ¶
CreateList window
func CreateTabOrder ¶
func CreateTableView ¶
func CreateTableView(flex *kview.Flex, msg TextInfo, fixedSize, proportion int, focus bool) *kview.Table
CreateTableView - Helper to create a Table
func CreateTextView ¶
func CreateTextView(flex *kview.Flex, msg TextInfo, fixedSize, proportion int, focus bool) *kview.TextView
CreateTextView - helper routine to create a TextView
func FormatBytes ¶
FormatBytes into KB, MB, GB, ...
func FormatUnits ¶
FormatUnits into KB, MB, GB, ...
func ParseNumberFloat64 ¶
func ParseNumberUint16 ¶
func ParseNumberUint64 ¶
func SetCell ¶
SetCell content given the information row, col of the cell to create and fill msg is the string content to insert in the cell a is an interface{} object list
object a is int then alignment kview.AlignLeft/Right/Center object a is bool then set the cell as selectable or not
func SetupSignals ¶
func TableSetHeaders ¶
func TitleColor ¶
TitleColor - Set the title color to the windows
Types ¶
type ModalPage ¶
type ModalPage struct {
// contains filtered or unexported fields
}
func GetModalPages ¶
func GetModalPages() []*ModalPage
Click to show internal directories.
Click to hide internal directories.