gui

package
v0.0.0-...-830f7db Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2022 License: MIT Imports: 26 Imported by: 0

Documentation

Overview

Package gui is a generated GoMock package.

Index

Constants

View Source
const (
	DefaultQueryRange     = 30 * time.Second
	DefaultRedrawInterval = 250 * time.Millisecond
)

Variables

This section is empty.

Functions

func Run

func Run(targetURL string, storage storage.Reader, attacker attacker.Attacker, opts Options) error

Types

type Gauge

type Gauge interface {
	widgetapi.Widget
	Percent(p int, opts ...gauge.Option) error
}

type LineChart

type LineChart interface {
	widgetapi.Widget
	Series(label string, values []float64, opts ...linechart.SeriesOption) error
}

type MockGauge

type MockGauge struct {
	// contains filtered or unexported fields
}

MockGauge is a mock of Gauge interface.

func NewMockGauge

func NewMockGauge(ctrl *gomock.Controller) *MockGauge

NewMockGauge creates a new mock instance.

func (*MockGauge) Draw

func (m *MockGauge) Draw(cvs *canvas.Canvas, meta *widgetapi.Meta) error

Draw mocks base method.

func (*MockGauge) EXPECT

func (m *MockGauge) EXPECT() *MockGaugeMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockGauge) Keyboard

func (m *MockGauge) Keyboard(k *terminalapi.Keyboard, meta *widgetapi.EventMeta) error

Keyboard mocks base method.

func (*MockGauge) Mouse

func (m_2 *MockGauge) Mouse(m *terminalapi.Mouse, meta *widgetapi.EventMeta) error

Mouse mocks base method.

func (*MockGauge) Options

func (m *MockGauge) Options() widgetapi.Options

Options mocks base method.

func (*MockGauge) Percent

func (m *MockGauge) Percent(p int, opts ...gauge.Option) error

Percent mocks base method.

type MockGaugeMockRecorder

type MockGaugeMockRecorder struct {
	// contains filtered or unexported fields
}

MockGaugeMockRecorder is the mock recorder for MockGauge.

func (*MockGaugeMockRecorder) Draw

func (mr *MockGaugeMockRecorder) Draw(cvs, meta interface{}) *gomock.Call

Draw indicates an expected call of Draw.

func (*MockGaugeMockRecorder) Keyboard

func (mr *MockGaugeMockRecorder) Keyboard(k, meta interface{}) *gomock.Call

Keyboard indicates an expected call of Keyboard.

func (*MockGaugeMockRecorder) Mouse

func (mr *MockGaugeMockRecorder) Mouse(m, meta interface{}) *gomock.Call

Mouse indicates an expected call of Mouse.

func (*MockGaugeMockRecorder) Options

func (mr *MockGaugeMockRecorder) Options() *gomock.Call

Options indicates an expected call of Options.

func (*MockGaugeMockRecorder) Percent

func (mr *MockGaugeMockRecorder) Percent(p interface{}, opts ...interface{}) *gomock.Call

Percent indicates an expected call of Percent.

type MockLineChart

type MockLineChart struct {
	// contains filtered or unexported fields
}

MockLineChart is a mock of LineChart interface.

func NewMockLineChart

func NewMockLineChart(ctrl *gomock.Controller) *MockLineChart

NewMockLineChart creates a new mock instance.

func (*MockLineChart) Draw

func (m *MockLineChart) Draw(cvs *canvas.Canvas, meta *widgetapi.Meta) error

Draw mocks base method.

func (*MockLineChart) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockLineChart) Keyboard

func (m *MockLineChart) Keyboard(k *terminalapi.Keyboard, meta *widgetapi.EventMeta) error

Keyboard mocks base method.

func (*MockLineChart) Mouse

func (m_2 *MockLineChart) Mouse(m *terminalapi.Mouse, meta *widgetapi.EventMeta) error

Mouse mocks base method.

func (*MockLineChart) Options

func (m *MockLineChart) Options() widgetapi.Options

Options mocks base method.

func (*MockLineChart) Series

func (m *MockLineChart) Series(label string, values []float64, opts ...linechart.SeriesOption) error

Series mocks base method.

type MockLineChartMockRecorder

type MockLineChartMockRecorder struct {
	// contains filtered or unexported fields
}

MockLineChartMockRecorder is the mock recorder for MockLineChart.

func (*MockLineChartMockRecorder) Draw

func (mr *MockLineChartMockRecorder) Draw(cvs, meta interface{}) *gomock.Call

Draw indicates an expected call of Draw.

func (*MockLineChartMockRecorder) Keyboard

func (mr *MockLineChartMockRecorder) Keyboard(k, meta interface{}) *gomock.Call

Keyboard indicates an expected call of Keyboard.

func (*MockLineChartMockRecorder) Mouse

func (mr *MockLineChartMockRecorder) Mouse(m, meta interface{}) *gomock.Call

Mouse indicates an expected call of Mouse.

func (*MockLineChartMockRecorder) Options

func (mr *MockLineChartMockRecorder) Options() *gomock.Call

Options indicates an expected call of Options.

func (*MockLineChartMockRecorder) Series

func (mr *MockLineChartMockRecorder) Series(label, values interface{}, opts ...interface{}) *gomock.Call

Series indicates an expected call of Series.

type MockText

type MockText struct {
	// contains filtered or unexported fields
}

MockText is a mock of Text interface.

func NewMockText

func NewMockText(ctrl *gomock.Controller) *MockText

NewMockText creates a new mock instance.

func (*MockText) Draw

func (m *MockText) Draw(cvs *canvas.Canvas, meta *widgetapi.Meta) error

Draw mocks base method.

func (*MockText) EXPECT

func (m *MockText) EXPECT() *MockTextMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockText) Keyboard

func (m *MockText) Keyboard(k *terminalapi.Keyboard, meta *widgetapi.EventMeta) error

Keyboard mocks base method.

func (*MockText) Mouse

func (m_2 *MockText) Mouse(m *terminalapi.Mouse, meta *widgetapi.EventMeta) error

Mouse mocks base method.

func (*MockText) Options

func (m *MockText) Options() widgetapi.Options

Options mocks base method.

func (*MockText) Write

func (m *MockText) Write(text string, wOpts ...text.WriteOption) error

Write mocks base method.

type MockTextMockRecorder

type MockTextMockRecorder struct {
	// contains filtered or unexported fields
}

MockTextMockRecorder is the mock recorder for MockText.

func (*MockTextMockRecorder) Draw

func (mr *MockTextMockRecorder) Draw(cvs, meta interface{}) *gomock.Call

Draw indicates an expected call of Draw.

func (*MockTextMockRecorder) Keyboard

func (mr *MockTextMockRecorder) Keyboard(k, meta interface{}) *gomock.Call

Keyboard indicates an expected call of Keyboard.

func (*MockTextMockRecorder) Mouse

func (mr *MockTextMockRecorder) Mouse(m, meta interface{}) *gomock.Call

Mouse indicates an expected call of Mouse.

func (*MockTextMockRecorder) Options

func (mr *MockTextMockRecorder) Options() *gomock.Call

Options indicates an expected call of Options.

func (*MockTextMockRecorder) Write

func (mr *MockTextMockRecorder) Write(text interface{}, wOpts ...interface{}) *gomock.Call

Write indicates an expected call of Write.

type Options

type Options struct {
	RedrawInternal time.Duration
	QueryRange     time.Duration
}

type Text

type Text interface {
	widgetapi.Widget
	Write(text string, wOpts ...text.WriteOption) error
}

Jump to

Keyboard shortcuts

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