Documentation ¶
Index ¶
- type MakeRequestView
- func (view *MakeRequestView) DisplayRemoveView()
- func (view *MakeRequestView) DisplaySaveView()
- func (view *MakeRequestView) GetContext() (int, string)
- func (view *MakeRequestView) GetURL() string
- func (view *MakeRequestView) InitView(executeRequest func(), displayExpertMode func(), newRequest func())
- type RequestExpertModeView
- type RequestResponseView
- type SettingsView
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MakeRequestView ¶
type MakeRequestView struct { App *tview.Application AppCtx *models.AppCtx Labels map[string]string RootPrmt tview.Primitive FormPrmt *tview.Form // Actions Save func(callback func()) Remove func(callback func()) }
MakeRequestView represents the creation of a new request
func NewMakeRequestView ¶
func NewMakeRequestView( app *tview.Application, ctx *models.AppCtx, save func(callback func()), remove func(callback func())) *MakeRequestView
NewMakeRequestView returns the view for the make request view
func (*MakeRequestView) DisplayRemoveView ¶
func (view *MakeRequestView) DisplayRemoveView()
DisplaySaveView displays request saving/updating view
func (*MakeRequestView) DisplaySaveView ¶
func (view *MakeRequestView) DisplaySaveView()
DisplaySaveView displays request saving/updating view
func (*MakeRequestView) GetContext ¶
func (view *MakeRequestView) GetContext() (int, string)
GetContext gets value form the context dropdown prmt
func (*MakeRequestView) GetURL ¶
func (view *MakeRequestView) GetURL() string
GetURL gets value form the URL input text prmt
func (*MakeRequestView) InitView ¶
func (view *MakeRequestView) InitView( executeRequest func(), displayExpertMode func(), newRequest func())
InitView build all components to display correctly the view
type RequestExpertModeView ¶
type RequestExpertModeView struct { App *tview.Application AppCtx *models.AppCtx Labels map[string]string TitlePrmt tview.Primitive ParentPrmt tview.Primitive }
RequestExpertModeView represents the request expert mode view
func NewRequestExpertModeView ¶
func NewRequestExpertModeView(app *tview.Application, ev *models.AppCtx) *RequestExpertModeView
NewRequestExpertModeView returns the view for the request expert mode
func (*RequestExpertModeView) InitView ¶
func (view *RequestExpertModeView) InitView()
InitView build all components to display correctly the view
type RequestResponseView ¶
type RequestResponseView struct { App *tview.Application AppCtx *models.AppCtx Labels map[string]string LogBuffer string TitlePrmt *tview.Flex ParentPrmt tview.Primitive RequestPrmt *tview.TextView ResponsePrmt *tview.TextView }
RequestResponseView represents the response of the request view
func NewRequestResponseView ¶
func NewRequestResponseView(app *tview.Application, ev *models.AppCtx) *RequestResponseView
NewRequestResponseView returns the view for the request response view
func (*RequestResponseView) Display ¶
func (view *RequestResponseView) Display(client *httpclient.HTTPClient, data string)
Display displays request & response data
func (*RequestResponseView) InitView ¶
func (view *RequestResponseView) InitView()
InitView builds all components to display correctly the view
func (*RequestResponseView) Logger ¶
func (view *RequestResponseView) Logger(message string, mode string)
Logger logs to the response prmt
func (*RequestResponseView) ResetLogBuffer ¶
func (view *RequestResponseView) ResetLogBuffer()
ResetLogBuffer resets the log buffer
type SettingsView ¶
type SettingsView struct { App *tview.Application AppCtx *models.AppCtx Labels map[string]string TitlePrmt tview.Primitive ParentPrmt tview.Primitive }
SettingsView represents the application settings view
func NewSettingsView ¶
func NewSettingsView(app *tview.Application, ev *models.AppCtx) *SettingsView
NewSettingsView returns the settings view of the app
func (*SettingsView) InitView ¶
func (view *SettingsView) InitView()
InitView build all components to display correctly the view