gui

package
v0.7.5 Latest Latest
Warning

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

Go to latest
Published: Nov 9, 2021 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 added in v0.2.5

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

type LineChart added in v0.2.5

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

type MockGauge added in v0.2.5

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

MockGauge is a mock of Gauge interface.

func NewMockGauge added in v0.2.5

func NewMockGauge(ctrl *gomock.Controller) *MockGauge

NewMockGauge creates a new mock instance.

func (*MockGauge) Draw added in v0.2.5

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

Draw mocks base method.

func (*MockGauge) EXPECT added in v0.2.5

func (m *MockGauge) EXPECT() *MockGaugeMockRecorder

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

func (*MockGauge) Keyboard added in v0.2.5

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

Keyboard mocks base method.

func (*MockGauge) Mouse added in v0.2.5

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

Mouse mocks base method.

func (*MockGauge) Options added in v0.2.5

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

Options mocks base method.

func (*MockGauge) Percent added in v0.2.5

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

Percent mocks base method.

type MockGaugeMockRecorder added in v0.2.5

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

MockGaugeMockRecorder is the mock recorder for MockGauge.

func (*MockGaugeMockRecorder) Draw added in v0.2.5

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

Draw indicates an expected call of Draw.

func (*MockGaugeMockRecorder) Keyboard added in v0.2.5

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

Keyboard indicates an expected call of Keyboard.

func (*MockGaugeMockRecorder) Mouse added in v0.2.5

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

Mouse indicates an expected call of Mouse.

func (*MockGaugeMockRecorder) Options added in v0.2.5

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

Options indicates an expected call of Options.

func (*MockGaugeMockRecorder) Percent added in v0.2.5

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

Percent indicates an expected call of Percent.

type MockLineChart added in v0.2.5

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

MockLineChart is a mock of LineChart interface.

func NewMockLineChart added in v0.2.5

func NewMockLineChart(ctrl *gomock.Controller) *MockLineChart

NewMockLineChart creates a new mock instance.

func (*MockLineChart) Draw added in v0.2.5

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

Draw mocks base method.

func (*MockLineChart) EXPECT added in v0.2.5

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

func (*MockLineChart) Keyboard added in v0.2.5

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

Keyboard mocks base method.

func (*MockLineChart) Mouse added in v0.2.5

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

Mouse mocks base method.

func (*MockLineChart) Options added in v0.2.5

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

Options mocks base method.

func (*MockLineChart) Series added in v0.2.5

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

Series mocks base method.

type MockLineChartMockRecorder added in v0.2.5

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

MockLineChartMockRecorder is the mock recorder for MockLineChart.

func (*MockLineChartMockRecorder) Draw added in v0.2.5

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

Draw indicates an expected call of Draw.

func (*MockLineChartMockRecorder) Keyboard added in v0.2.5

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

Keyboard indicates an expected call of Keyboard.

func (*MockLineChartMockRecorder) Mouse added in v0.2.5

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

Mouse indicates an expected call of Mouse.

func (*MockLineChartMockRecorder) Options added in v0.2.5

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

Options indicates an expected call of Options.

func (*MockLineChartMockRecorder) Series added in v0.2.5

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

Series indicates an expected call of Series.

type MockText added in v0.2.5

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

MockText is a mock of Text interface.

func NewMockText added in v0.2.5

func NewMockText(ctrl *gomock.Controller) *MockText

NewMockText creates a new mock instance.

func (*MockText) Draw added in v0.2.5

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

Draw mocks base method.

func (*MockText) EXPECT added in v0.2.5

func (m *MockText) EXPECT() *MockTextMockRecorder

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

func (*MockText) Keyboard added in v0.2.5

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

Keyboard mocks base method.

func (*MockText) Mouse added in v0.2.5

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

Mouse mocks base method.

func (*MockText) Options added in v0.2.5

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

Options mocks base method.

func (*MockText) Write added in v0.2.5

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

Write mocks base method.

type MockTextMockRecorder added in v0.2.5

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

MockTextMockRecorder is the mock recorder for MockText.

func (*MockTextMockRecorder) Draw added in v0.2.5

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

Draw indicates an expected call of Draw.

func (*MockTextMockRecorder) Keyboard added in v0.2.5

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

Keyboard indicates an expected call of Keyboard.

func (*MockTextMockRecorder) Mouse added in v0.2.5

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

Mouse indicates an expected call of Mouse.

func (*MockTextMockRecorder) Options added in v0.2.5

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

Options indicates an expected call of Options.

func (*MockTextMockRecorder) Write added in v0.2.5

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

Write indicates an expected call of Write.

type Options added in v0.7.0

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

type Text added in v0.2.5

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