tui

package
v0.0.15 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 13 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildFilter

func BuildFilter(filterString []string, watchedMaps map[string]loader.WatchedMap) (map[string]Filter, error)

Types

type App

type App struct {
	Entries chan loader.MapEntry
	// contains filtered or unexported fields
}

func NewApp

func NewApp(opts *AppOpts) App

func (*App) Close added in v0.0.11

func (a *App) Close()

func (*App) NewHashMap

func (a *App) NewHashMap(name string, keys []string)

func (*App) NewRingBuf

func (a *App) NewRingBuf(name string, keys []string)

func (*App) Run

func (a *App) Run(ctx context.Context, progLoader loader.Loader, loaderOpts *loader.LoadOptions) error

func (*App) SendEntry

func (a *App) SendEntry(entry loader.MapEntry)

type AppOpts

type AppOpts struct {
	ProgLocation string
	Filter       map[string]Filter
	ParsedELF    *loader.ParsedELF
}

type Filter

type Filter struct {
	MapName  string
	KeyField string
	Regex    *regexp.Regexp
}

type MapValue

type MapValue struct {
	Hash    uint64
	Entries []loader.KvPair
	Table   *tview.Table
	Index   int
	Type    ebpf.MapType
	Keys    []string
}

Jump to

Keyboard shortcuts

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