Documentation ¶
Index ¶
- type Button
- type Commands
- type ComponentLayout
- type CreateModalDiaLog
- type InitOutputPanelComponents
- type ShowMessageBoxParam
- type UI
- func (u *UI) ApplyBookmark(session entity.Session)
- func (u *UI) CloseModalDialog(wnd *winman.WindowBase, focus tview.Primitive)
- func (u *UI) CreateModalDialog(param CreateModalDiaLog) *winman.WindowBase
- func (u *UI) DeleteBookmark(b entity.Session) error
- func (u *UI) InitBookmarkMenu() *tview.TreeView
- func (u *UI) InitBookmarkMenu_SetInputCapture(bookmarkList *tview.TreeView)
- func (u *UI) InitBookmarkMenu_SetSelection(bookmarkList *tview.TreeView)
- func (u *UI) InitLogList() *tview.TextView
- func (u *UI) InitLogList_SetInputCapture(logPanel *tview.TextView)
- func (u *UI) InitOutputPanel() InitOutputPanelComponents
- func (u *UI) InitSidebarMenu() *tview.List
- func (u *UI) InitSidebarMenu_SetInputCapture(menuList *tview.List)
- func (u *UI) InvokeRPC()
- func (u *UI) OverwriteBookmark(b *entity.Session) error
- func (u *UI) PrintLog(param entity.Log)
- func (u *UI) PrintOutput(param entity.Output)
- func (u UI) QuitApplication()
- func (u *UI) RefreshBookmarkList() int16
- func (u UI) Run() error
- func (u *UI) SetFocus(p tview.Primitive)
- func (u *UI) ShowAuthorizationModal()
- func (u *UI) ShowAuthorizationModal_SetInputCapture(wnd *winman.WindowBase, txtAuthorization *tview.InputField, ...)
- func (u *UI) ShowBookmarkCategoryModal(onSelectedCategory func(wnd winman.Window, b *entity.Category))
- func (u *UI) ShowBookmarkCategoryModal_SetInputCapture(wnd *winman.WindowBase, list *tview.List)
- func (u *UI) ShowBookmarkNameModal(parentWND winman.Window, onEnter func(bookmarkName string))
- func (u UI) ShowBookmarkOptionsModal(parentWnd tview.Primitive, bookmark *entity.Session)
- func (u *UI) ShowBookmarkOptionsModal_SetInputCapture(wnd *winman.WindowBase, parentWnd tview.Primitive, listOptions *tview.List)
- func (u *UI) ShowCreateNewCategoryModal(parentWND *winman.WindowBase, list *tview.List, ...)
- func (u *UI) ShowMessageBox(param ShowMessageBoxParam)
- func (u *UI) ShowMessageBox_SetComponentActions(wnd *winman.WindowBase, form *tview.Form, buttons []Button)
- func (u *UI) ShowMessageBox_SetInputCapture(wnd *winman.WindowBase, parent *tview.Form)
- func (u *UI) ShowMetadataModal()
- func (u *UI) ShowMetadataModal_RefreshMetadataTable(table *tview.Table)
- func (u *UI) ShowMetadataModal_SetInputCapture(wnd *winman.WindowBase, table *tview.Table, form *tview.Form)
- func (u *UI) ShowRequestPayloadModal()
- func (u *UI) ShowRequestPayloadModal_SetComponentActions(wnd *winman.WindowBase, form *tview.Form, txtPayload *tview.TextArea)
- func (u *UI) ShowRequestPayloadModal_SetInputCapture(wnd *winman.WindowBase, form *tview.Form)
- func (u *UI) ShowSaveToBookmarkModal()
- func (u *UI) ShowSetRequestMethodModal()
- func (u *UI) ShowSetRequestMethodModal_SetInputCapture(wnd *winman.WindowBase, listMethods *tview.List, txtSearch *tview.InputField)
- func (u *UI) ShowSetServerURLModal()
- func (u *UI) ShowSetServerURLModal_SetInputCapture(wnd *winman.WindowBase, inp *tview.InputField)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Button ¶
type Button struct { Name string OnClick func(msgboxWnd *winman.WindowBase) }
type ComponentLayout ¶
type CreateModalDiaLog ¶
type CreateModalDiaLog struct {
// contains filtered or unexported fields
}
type InitOutputPanelComponents ¶ added in v0.0.5
type ShowMessageBoxParam ¶
type ShowMessageBoxParam struct {
// contains filtered or unexported fields
}
type UI ¶
type UI struct { App *tview.Application WinMan *winman.Manager Layout *ComponentLayout GRPC *grpc.GRPC Bookmark *bookmark.Bookmark Storage *storage.Storage LogChannel chan entity.Log OutputChannel chan entity.Output Theme *entity.Theme }
func (*UI) ApplyBookmark ¶
func (*UI) CloseModalDialog ¶
func (u *UI) CloseModalDialog(wnd *winman.WindowBase, focus tview.Primitive)
CloseModalDialog is a helper to close the modal dialog window
func (*UI) CreateModalDialog ¶
func (u *UI) CreateModalDialog(param CreateModalDiaLog) *winman.WindowBase
CreateModalDialog is a helper to create a modal dialog window
func (*UI) DeleteBookmark ¶
DeleteBookmark is used to delete a bookmark from the bookmark tree and save the bookmark
func (*UI) InitBookmarkMenu ¶
InitBookmarkMenu initializes the bookmark sidebar menu
func (*UI) InitBookmarkMenu_SetInputCapture ¶
func (*UI) InitBookmarkMenu_SetSelection ¶
func (*UI) InitLogList ¶
InitLogList initializes the log panel on the main screen
func (*UI) InitLogList_SetInputCapture ¶
func (*UI) InitOutputPanel ¶ added in v0.0.5
func (u *UI) InitOutputPanel() InitOutputPanelComponents
InitOutputPanel initializes the output panel on the main screen
func (*UI) InitSidebarMenu ¶
InitSidebarMenu is used to initialize and populate sidebar menu
func (*UI) InitSidebarMenu_SetInputCapture ¶
func (*UI) OverwriteBookmark ¶
OverwriteBookmark is used to overwrite the bookmark with current active session
func (*UI) PrintOutput ¶ added in v0.0.5
PrintOutput used to print output to the output panel
func (UI) QuitApplication ¶
func (u UI) QuitApplication()
func (*UI) RefreshBookmarkList ¶
func (*UI) ShowAuthorizationModal ¶
func (u *UI) ShowAuthorizationModal()
ShowAuthorizationModal used to show the authorization modal dialog
func (*UI) ShowAuthorizationModal_SetInputCapture ¶
func (u *UI) ShowAuthorizationModal_SetInputCapture(wnd *winman.WindowBase, txtAuthorization *tview.InputField, currentToken string)
func (*UI) ShowBookmarkCategoryModal ¶
func (*UI) ShowBookmarkCategoryModal_SetInputCapture ¶
func (u *UI) ShowBookmarkCategoryModal_SetInputCapture(wnd *winman.WindowBase, list *tview.List)
func (*UI) ShowBookmarkNameModal ¶
ShowBookmarkNameModal is used to show modal with text box to change the bookmark name
func (UI) ShowBookmarkOptionsModal ¶
ShowBookmarkOptionsModal is used to show the bookmark options modal, to load, overwrite, or remove the bookmark
func (*UI) ShowBookmarkOptionsModal_SetInputCapture ¶
func (u *UI) ShowBookmarkOptionsModal_SetInputCapture(wnd *winman.WindowBase, parentWnd tview.Primitive, listOptions *tview.List)
ShowBookmarkOptionsModal_SetInputCapture sets the input capture for the bookmark options modal
func (*UI) ShowCreateNewCategoryModal ¶
func (u *UI) ShowCreateNewCategoryModal(parentWND *winman.WindowBase, list *tview.List, onSelectedCategory func(wnd winman.Window, b *entity.Category))
ShowCreateNewCategoryModal is used to show modal with text box to create new category
func (*UI) ShowMessageBox ¶
func (u *UI) ShowMessageBox(param ShowMessageBoxParam)
ShowMessageBox is used to show message box with fixed size 50x11
func (*UI) ShowMessageBox_SetComponentActions ¶
func (*UI) ShowMessageBox_SetInputCapture ¶
func (u *UI) ShowMessageBox_SetInputCapture(wnd *winman.WindowBase, parent *tview.Form)
func (*UI) ShowMetadataModal ¶
func (u *UI) ShowMetadataModal()
func (*UI) ShowMetadataModal_RefreshMetadataTable ¶
func (*UI) ShowMetadataModal_SetInputCapture ¶ added in v0.0.3
func (*UI) ShowRequestPayloadModal ¶
func (u *UI) ShowRequestPayloadModal()
ShowRequestPayloadModal is used to show the request payload modal dialog
func (*UI) ShowRequestPayloadModal_SetComponentActions ¶
func (*UI) ShowRequestPayloadModal_SetInputCapture ¶
func (u *UI) ShowRequestPayloadModal_SetInputCapture(wnd *winman.WindowBase, form *tview.Form)
func (*UI) ShowSaveToBookmarkModal ¶
func (u *UI) ShowSaveToBookmarkModal()
ShowSaveToBookmarkModal used to open the save bookmark dialog to save the current payload to bookmark
func (*UI) ShowSetRequestMethodModal ¶
func (u *UI) ShowSetRequestMethodModal()
ShowSetRequestMethodModal is used to show the RPC method selection modal dialog
func (*UI) ShowSetRequestMethodModal_SetInputCapture ¶
func (u *UI) ShowSetRequestMethodModal_SetInputCapture(wnd *winman.WindowBase, listMethods *tview.List, txtSearch *tview.InputField)
func (*UI) ShowSetServerURLModal ¶
func (u *UI) ShowSetServerURLModal()
func (*UI) ShowSetServerURLModal_SetInputCapture ¶
func (u *UI) ShowSetServerURLModal_SetInputCapture(wnd *winman.WindowBase, inp *tview.InputField)
ShowSetServerURLModal_SetInputCapture handle the input capture from keyboard
Source Files ¶
- helper.go
- init_bookmark_menu.go
- init_log_list.go
- init_output_panel.go
- init_sidebar_menu.go
- invoke_rpc.go
- message_box.go
- print_log.go
- print_output.go
- save_bookmark.go
- show_authorization_modal.go
- show_bookmark_option_modal.go
- show_metadata_modal.go
- show_request_payload_modal.go
- show_set_request_method_modal.go
- show_set_server_url_modal.go
- startup.go
- ui.go