gui

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTableCell

func SetTableCell(title string, width int, color tcell.Color, selectable bool) *tview.TableCell

Types

type Gui

type Gui struct {
	App          *tview.Application
	Pages        *tview.Pages
	UrlField     *urlField
	ParamsTable  *table
	BodyTable    *table
	ResTextView  *resTestView
	HTTPTextView *httpTestView
	NavTextView  *navigate
}

func New

func New() *Gui

func (*Gui) GetRequestUrl

func (g *Gui) GetRequestUrl() string

func (*Gui) HttpRequest

func (g *Gui) HttpRequest(url string) *http.Response

func (*Gui) Modal

func (g *Gui) Modal(p tview.Primitive, width, height int) tview.Primitive

func (*Gui) NewHTTPListModal

func (g *Gui) NewHTTPListModal()

func (*Gui) NewInputModal

func (g *Gui) NewInputModal(table *table)

func (*Gui) ParseResponse

func (g *Gui) ParseResponse(resp *http.Response) string

func (*Gui) Run

func (g *Gui) Run(i interface{}) error

func (*Gui) ToBodyTable

func (g *Gui) ToBodyTable()

func (*Gui) ToFocus

func (g *Gui) ToFocus()

func (*Gui) ToHTTPFieldFocus

func (g *Gui) ToHTTPFieldFocus()

func (*Gui) ToParamsTableFocus

func (g *Gui) ToParamsTableFocus()

func (*Gui) ToResTextField

func (g *Gui) ToResTextField()

func (*Gui) ToUrlFieldFocus

func (g *Gui) ToUrlFieldFocus()

type Param

type Param struct {
	Key   string
	Value string
}

type Params

type Params []Param

func (Params) ToBodyParams

func (p Params) ToBodyParams() string

func (Params) ToQueryString

func (p Params) ToQueryString() string

Jump to

Keyboard shortcuts

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