tui

package
v0.0.14 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: Apache-2.0 Imports: 13 Imported by: 0

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