tui

package
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2021 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
	CloseChan chan struct{}
	// contains filtered or unexported fields
}

func NewApp

func NewApp(opts *AppOpts) App

func (*App) NewHashMap

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

func (*App) NewRingBuf

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

func (*App) PreWatchHandler

func (a *App) PreWatchHandler()

func (*App) Run

func (a *App) Run(ctx context.Context, progReader io.ReaderAt) error

func (*App) SendEntry

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

type AppOpts

type AppOpts struct {
	Loader       loader.Loader
	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