Documentation
¶
Index ¶
- Constants
- type ConsoleUI
- func (ui *ConsoleUI) ArrowLeft(g *gocui.Gui, v *gocui.View) error
- func (ui *ConsoleUI) ArrowRight(g *gocui.Gui, v *gocui.View) error
- func (ui *ConsoleUI) DeleteSelection(g *gocui.Gui, v *gocui.View) error
- func (ui *ConsoleUI) IsRequestSelected() bool
- func (ui *ConsoleUI) Run()
- func (ui *ConsoleUI) ScrollDown(g *gocui.Gui, v *gocui.View) error
- func (ui *ConsoleUI) ScrollUp(g *gocui.Gui, v *gocui.View) error
- func (ui *ConsoleUI) SelectedRequest() *gpmodel.RequestSpec
- func (ui *ConsoleUI) SetOnExec(f func(w io.Writer))
- func (ui *ConsoleUI) SetRequestGroups(grps []*gpmodel.RequestGroup)
- func (ui *ConsoleUI) ToggleVariablesModal(g *gocui.Gui, v *gocui.View) error
- func (ui *ConsoleUI) UpdateVariable(k, v string)
- func (ui *ConsoleUI) UpdateVariables(vars map[string]string)
- type RequestWidget
- type ResponseWidget
- type TreeWidget
- func (tw *TreeWidget) CollapseAll()
- func (tw *TreeWidget) ExpandAll()
- func (tw *TreeWidget) Layout(v *gocui.View)
- func (tw *TreeWidget) MoveDown()
- func (tw *TreeWidget) MoveUp()
- func (tw *TreeWidget) SelectLast()
- func (tw *TreeWidget) SetRequestGroups(gps []*gpmodel.RequestGroup)
- func (tw *TreeWidget) ToggleExpanded()
- type VariablesWidget
Constants ¶
View Source
const ( SelectIcon = '\u066D' ArrowDownSolid = '\u25BC' ArrowDownOpen = '\u1401' ArrowRightOpen = '\u1405' )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConsoleUI ¶
ConsoleUI contains the various widgets to run the console based user interface
func NewConsoleUI ¶
NewConsoleUI creates a new ConsoleUI instance
func (*ConsoleUI) ArrowRight ¶
ArrowRight
func (*ConsoleUI) DeleteSelection ¶
DeleteSelection
func (*ConsoleUI) IsRequestSelected ¶
func (*ConsoleUI) SelectedRequest ¶
func (ui *ConsoleUI) SelectedRequest() *gpmodel.RequestSpec
func (*ConsoleUI) SetRequestGroups ¶
func (ui *ConsoleUI) SetRequestGroups(grps []*gpmodel.RequestGroup)
SetRequestGroups sets the groups to display in the UI
func (*ConsoleUI) ToggleVariablesModal ¶
func (*ConsoleUI) UpdateVariable ¶
UpdateVariable update a variable in the display
func (*ConsoleUI) UpdateVariables ¶
UpdateVariables changes the variables currently displayed
type RequestWidget ¶
type RequestWidget struct {
// contains filtered or unexported fields
}
func (*RequestWidget) Layout ¶
func (rw *RequestWidget) Layout(v *gocui.View)
type ResponseWidget ¶
type ResponseWidget struct {
// contains filtered or unexported fields
}
func (*ResponseWidget) Layout ¶
func (rw *ResponseWidget) Layout(v *gocui.View)
func (*ResponseWidget) SetRequesting ¶
func (rw *ResponseWidget) SetRequesting(url string)
func (*ResponseWidget) SetResponse ¶
func (rw *ResponseWidget) SetResponse(status int, body string)
type TreeWidget ¶
func (*TreeWidget) CollapseAll ¶
func (tw *TreeWidget) CollapseAll()
func (*TreeWidget) ExpandAll ¶
func (tw *TreeWidget) ExpandAll()
func (*TreeWidget) Layout ¶
func (tw *TreeWidget) Layout(v *gocui.View)
func (*TreeWidget) MoveDown ¶
func (tw *TreeWidget) MoveDown()
func (*TreeWidget) MoveUp ¶
func (tw *TreeWidget) MoveUp()
func (*TreeWidget) SelectLast ¶
func (tw *TreeWidget) SelectLast()
func (*TreeWidget) SetRequestGroups ¶
func (tw *TreeWidget) SetRequestGroups(gps []*gpmodel.RequestGroup)
func (*TreeWidget) ToggleExpanded ¶
func (tw *TreeWidget) ToggleExpanded()
type VariablesWidget ¶
type VariablesWidget struct {
// contains filtered or unexported fields
}
func (*VariablesWidget) Layout ¶
func (vw *VariablesWidget) Layout(view *gocui.View)
func (*VariablesWidget) SetVariable ¶
func (vw *VariablesWidget) SetVariable(k, v string)
func (*VariablesWidget) SetVariables ¶
func (vw *VariablesWidget) SetVariables(vars [][]string)
Click to show internal directories.
Click to hide internal directories.