component

package
v0.0.0-...-110b06d Latest Latest
Warning

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

Go to latest
Published: Jul 1, 2024 License: GPL-3.0 Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ComponentInterface

type ComponentInterface interface {
	LoggerInterface
	RenderInterface

	FlexItem(context.Context) *tview.Flex
	// contains filtered or unexported methods
}

ComponentInterface defines the interface for UI components.

func Helper

func Helper[R RenderInterface, L LoggerInterface](render R, logger L, hotKeys *[]extension.Keys) ComponentInterface

func NetScan

func NetScan[R RenderInterface, L LoggerInterface, V ViewInterface](render R, logger L, view V) ComponentInterface

func NetStat

func NetStat[R RenderInterface, L LoggerInterface](render R, logger L) ComponentInterface

func StdOut

func StdOut[R RenderInterface, L LoggerInterface](render R, logger L) ComponentInterface

func SysInfo

func SysInfo[R RenderInterface, L LoggerInterface](render R, logger L) ComponentInterface

type LoggerInterface

type LoggerInterface interface {
	ReadMsg() chan string
	WriteMsg(string)
}

LoggerInterface defines the interface for application log process.

type RenderInterface

type RenderInterface interface {
	DrawRootFrame()
}

RenderInterface defines the interface for application frames render process.

type ViewInterface

type ViewInterface interface {
	Open(*modal.Modal)
}

ViewInterface defines the interface for open modal window.

Jump to

Keyboard shortcuts

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