Documentation ¶
Index ¶
- Constants
- func GetEnv(key string, defaultValue string) string
- type Gui
- func (g *Gui) CloseAndSwitchPanel(removePrimitive string, primitive tview.Primitive)
- func (g *Gui) Confirm(message, doneLabel string, primitive tview.Primitive, doneFunc func())
- func (g *Gui) CurrentPanelKind() int
- func (g *Gui) FilterInputKeybinds()
- func (g *Gui) GrobalKeybind(event *tcell.EventKey)
- func (g *Gui) Modal(p tview.Primitive, width, height int) tview.Primitive
- func (g *Gui) ProcessEnvViewKeybinds()
- func (g *Gui) ProcessFileViewKeybinds()
- func (g *Gui) ProcessInfoViewKeybinds()
- func (g *Gui) ProcessManagerKeybinds()
- func (g *Gui) ProcessTreeViewKeybinds()
- func (g *Gui) Run() error
- func (g *Gui) SetKeybinds()
- func (g *Gui) SwitchPanel(p tview.Primitive) *tview.Application
- func (g *Gui) UpdateViews()
- type NaviView
- type Panels
- type Process
- type ProcessEnvView
- type ProcessFileView
- type ProcessInfoView
- type ProcessManager
- func (p *ProcessManager) Env(pid int) (string, error)
- func (p *ProcessManager) GetProcesses() (map[int]Process, error)
- func (p *ProcessManager) Info(pid int) (string, error)
- func (p *ProcessManager) Kill() error
- func (p *ProcessManager) KillWithPid(pid int) error
- func (p *ProcessManager) OpenFiles(pid int) (string, error)
- func (p *ProcessManager) Selected() *Process
- func (p *ProcessManager) UpdateView() error
- type ProcessTreeView
Constants ¶
View Source
const ( InputPanel int = iota + 1 ProcessesPanel ProcessInfoPanel ProcessEnvPanel ProcessTreePanel ProcessFilePanel )
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Gui ¶
type Gui struct { FilterInput *tview.InputField ProcessManager *ProcessManager ProcessInfoView *ProcessInfoView ProcessTreeView *ProcessTreeView ProcessEnvView *ProcessEnvView ProcessFileView *ProcessFileView App *tview.Application Pages *tview.Pages Panels }
func (*Gui) CloseAndSwitchPanel ¶
func (*Gui) CurrentPanelKind ¶
func (*Gui) FilterInputKeybinds ¶
func (g *Gui) FilterInputKeybinds()
func (*Gui) GrobalKeybind ¶
func (*Gui) ProcessEnvViewKeybinds ¶
func (g *Gui) ProcessEnvViewKeybinds()
func (*Gui) ProcessFileViewKeybinds ¶
func (g *Gui) ProcessFileViewKeybinds()
func (*Gui) ProcessInfoViewKeybinds ¶
func (g *Gui) ProcessInfoViewKeybinds()
func (*Gui) ProcessManagerKeybinds ¶
func (g *Gui) ProcessManagerKeybinds()
func (*Gui) ProcessTreeViewKeybinds ¶
func (g *Gui) ProcessTreeViewKeybinds()
func (*Gui) SetKeybinds ¶
func (g *Gui) SetKeybinds()
func (*Gui) SwitchPanel ¶
func (g *Gui) SwitchPanel(p tview.Primitive) *tview.Application
func (*Gui) UpdateViews ¶
func (g *Gui) UpdateViews()
type NaviView ¶
type NaviView struct {
}func NewNaviView ¶
func NewNaviView() *NaviView
func (*NaviView) UpdateView ¶
type ProcessEnvView ¶
func NewProcessEnvView ¶
func NewProcessEnvView() *ProcessEnvView
func (*ProcessEnvView) UpdateView ¶
func (p *ProcessEnvView) UpdateView(g *Gui)
func (*ProcessEnvView) UpdateViewWithPid ¶
func (p *ProcessEnvView) UpdateViewWithPid(g *Gui, pid int)
type ProcessFileView ¶
func NewProcessFileView ¶
func NewProcessFileView() *ProcessFileView
func (*ProcessFileView) UpdateView ¶
func (p *ProcessFileView) UpdateView(g *Gui)
func (*ProcessFileView) UpdateViewWithPid ¶
func (p *ProcessFileView) UpdateViewWithPid(g *Gui, pid int)
type ProcessInfoView ¶
func NewProcessInfoView ¶
func NewProcessInfoView() *ProcessInfoView
func (*ProcessInfoView) UpdateInfo ¶
func (p *ProcessInfoView) UpdateInfo(g *Gui)
func (*ProcessInfoView) UpdateInfoWithPid ¶
func (p *ProcessInfoView) UpdateInfoWithPid(g *Gui, pid int)
type ProcessManager ¶
type ProcessManager struct { *tview.Table FilterWord string // contains filtered or unexported fields }
func NewProcessManager ¶
func NewProcessManager() *ProcessManager
func (*ProcessManager) GetProcesses ¶
func (p *ProcessManager) GetProcesses() (map[int]Process, error)
func (*ProcessManager) Kill ¶
func (p *ProcessManager) Kill() error
func (*ProcessManager) KillWithPid ¶
func (p *ProcessManager) KillWithPid(pid int) error
func (*ProcessManager) Selected ¶
func (p *ProcessManager) Selected() *Process
func (*ProcessManager) UpdateView ¶
func (p *ProcessManager) UpdateView() error
type ProcessTreeView ¶
func NewProcessTreeView ¶
func NewProcessTreeView(pm *ProcessManager) *ProcessTreeView
func (*ProcessTreeView) ExpandToggle ¶
func (p *ProcessTreeView) ExpandToggle(pm *ProcessManager, node *tview.TreeNode, isExpand bool)
func (*ProcessTreeView) UpdateTree ¶
func (p *ProcessTreeView) UpdateTree(g *Gui)
Click to show internal directories.
Click to hide internal directories.