Documentation
¶
Overview ¶
gui package contains the main vanity gui interface that provides convinence and channels to windows.
Index ¶
- func NewImageBox(img image.Image, viewWidth, viewHeight int) *imageBox
- func PreviewMonkeys(ctx context.Context, previewChan chan<- MonkeyPreview, ...)
- type MainApp
- func (m *MainApp) DebugPressEsc()
- func (mainApp *MainApp) Done() <-chan struct{}
- func (a *MainApp) Fire(entry *logrus.Entry) error
- func (a *MainApp) ForceDebugResize()
- func (mainApp *MainApp) ForceQuit()
- func (a *MainApp) GetFoundStat() uint64
- func (a *MainApp) GetTotalStat() uint64
- func (mainApp *MainApp) HandleEvent(event *tcell.EventKey) *tcell.EventKey
- func (a *MainApp) Levels() []logrus.Level
- func (a *MainApp) PNGPreviewChan() (monkeyPreviewChan chan<- MonkeyPreview)
- func (m *MainApp) Quit()
- func (m *MainApp) Run(endTime time.Time)
- func (a *MainApp) SetPreview(index int, img image.Image, title string)
- func (a *MainApp) SetTerminalScreen(s tcell.Screen)
- func (a *MainApp) TotalDeltaChan() chan<- engine.Stats
- func (a *MainApp) UpdateFoundStat(additional uint64)
- func (a *MainApp) UpdateSpeed()
- func (a *MainApp) UpdateStats(stats engine.Stats)
- func (a *MainApp) UpdateTotal()
- func (a *MainApp) UpdateTotalRequestsStat(additional uint64)
- func (a *MainApp) UpdateTotalStat(additional uint64)
- type MonkeyPreview
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewImageBox ¶
func PreviewMonkeys ¶
func PreviewMonkeys(ctx context.Context, previewChan chan<- MonkeyPreview, monkeyDataChan <-chan engine.MonkeyStats)
Types ¶
type MainApp ¶
type MainApp struct {
// contains filtered or unexported fields
}
func NewMainApp ¶
func (*MainApp) DebugPressEsc ¶
func (m *MainApp) DebugPressEsc()
func (*MainApp) ForceDebugResize ¶
func (a *MainApp) ForceDebugResize()
ForceDebugResize is required when adding a previous screen because widht and height will not be setup correct, this seems like a bug.
func (*MainApp) GetFoundStat ¶
func (*MainApp) GetTotalStat ¶
func (*MainApp) HandleEvent ¶
func (mainApp *MainApp) HandleEvent(event *tcell.EventKey) *tcell.EventKey
func (*MainApp) PNGPreviewChan ¶
func (a *MainApp) PNGPreviewChan() (monkeyPreviewChan chan<- MonkeyPreview)
PNGPreviewChan is a channel png images can be piped to and they will go to the appropriate preivew panes.
func (*MainApp) SetTerminalScreen ¶
func (a *MainApp) SetTerminalScreen(s tcell.Screen)
func (*MainApp) TotalDeltaChan ¶
func (*MainApp) UpdateFoundStat ¶
func (*MainApp) UpdateSpeed ¶
func (a *MainApp) UpdateSpeed()
func (*MainApp) UpdateStats ¶
func (*MainApp) UpdateTotal ¶
func (a *MainApp) UpdateTotal()
func (*MainApp) UpdateTotalRequestsStat ¶
func (*MainApp) UpdateTotalStat ¶
type MonkeyPreview ¶
Click to show internal directories.
Click to hide internal directories.