ui

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package ui is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewEmptyView

func NewEmptyView(name string) *view

NewEmptyView returns a new instance of an empty view

func NewView

func NewView(name, title string, v *gocui.View) *view

NewView returns a new instance of a view

Types

type Layout

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

Layout is the structure of the gui layout

func NewLayout

func NewLayout(uiEnabled bool) *Layout

NewLayout returns a new layout instance

func (*Layout) GetForwardsView

func (l *Layout) GetForwardsView() *view

GetForwardsView returns the forward view structure

func (*Layout) GetGui

func (l *Layout) GetGui() *gocui.Gui

GetGui returns the GoCUI GUI structure

func (*Layout) GetLogsView

func (l *Layout) GetLogsView() *view

GetLogsView returns the logs view structure

func (*Layout) GetProxyView

func (l *Layout) GetProxyView() *view

GetProxyView returns the proxy view structure

func (*Layout) GetStatusView

func (l *Layout) GetStatusView() *view

GetStatusView returns the top status bar view structure

func (*Layout) Init

func (l *Layout) Init()

Init initializes the gui layout

type MockView added in v1.0.14

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

MockView is a mock of View interface.

func NewMockView added in v1.0.14

func NewMockView(ctrl *gomock.Controller) *MockView

NewMockView creates a new mock instance.

func (*MockView) EXPECT added in v1.0.14

func (m *MockView) EXPECT() *MockViewMockRecorder

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

func (*MockView) GetName added in v1.0.14

func (m *MockView) GetName() string

GetName mocks base method.

func (*MockView) Write added in v1.0.14

func (m *MockView) Write(str string)

Write mocks base method.

func (*MockView) Writef added in v1.0.14

func (m *MockView) Writef(str string, args ...interface{})

Writef mocks base method.

type MockViewMockRecorder added in v1.0.14

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

MockViewMockRecorder is the mock recorder for MockView.

func (*MockViewMockRecorder) GetName added in v1.0.14

func (mr *MockViewMockRecorder) GetName() *gomock.Call

GetName indicates an expected call of GetName.

func (*MockViewMockRecorder) Write added in v1.0.14

func (mr *MockViewMockRecorder) Write(str interface{}) *gomock.Call

Write indicates an expected call of Write.

func (*MockViewMockRecorder) Writef added in v1.0.14

func (mr *MockViewMockRecorder) Writef(str interface{}, args ...interface{}) *gomock.Call

Writef indicates an expected call of Writef.

type View

type View interface {
	GetName() string
	Write(str string)
	Writef(str string, args ...interface{})
}

Jump to

Keyboard shortcuts

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