ui

package
v1.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2019 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

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 View

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

View is the view structure

func NewEmptyView

func NewEmptyView(name string) *View

NewEmptyView returns a new instance of an empty view

func NewView

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

NewView returns a new instance of a view

func (*View) GetName

func (v *View) GetName() string

GetName returns the name of the view

func (*View) GetTitle

func (v *View) GetTitle() string

GetTitle returns the title of the view

func (*View) GetView

func (v *View) GetView() *gocui.View

GetView returns the GoCUI view structure

func (*View) Write

func (v *View) Write(str string)

Write allows to write a string to the view

func (*View) Writef

func (v *View) Writef(str string, args ...interface{})

Writef allows to write a string to the view with some given arguments

type ViewInterface

type ViewInterface 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