view

package
v0.0.0-...-2572d14 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2024 License: MIT Imports: 22 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KeyHelp1  tcell.Key = tcell.KeyF1
	KeyHelp2  tcell.Key = ui.KeyHelp
	KeyFilter tcell.Key = ui.KeyF
	KeyExit   tcell.Key = tcell.KeyCtrlC
	KeySave   tcell.Key = tcell.KeyCtrlS
	KeyPause  tcell.Key = ui.KeyP
	KeyStart  tcell.Key = ui.KeyS
)
View Source
const (
	SrvColorOK   = "green"
	SrvColorFail = "red"
)

Panels content

Variables

This section is empty.

Functions

func NewPrinter

func NewPrinter() visor.Printer

Types

type Cfg

type Cfg struct {
	CmdFlags vf.Flags
}

Cfg - configs

type Deps

type Deps struct {
	Visor       Visor
	TblProvider TableProvider
}

Deps - dependencies

type THClient

type THClient = thAPI.Client

type TableProvider

type TableProvider interface {
	Run(context.Context) error
	GetTableById(id uint64) (tbl string, err error)
	Close() error
}

type Viewer

type Viewer interface {
	Run() error
}

func GetViewer

func GetViewer() Viewer

func SetupViewer

func SetupViewer(ctx context.Context, d Deps, c Cfg) Viewer

SetupViewer returns a visor ui app instance.

type Visor

type Visor interface {
	Run(context.Context, model.TraceScopeModel) error
	IsStarted() bool
	Close() error
}

Jump to

Keyboard shortcuts

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