Documentation
¶
Index ¶
Constants ¶
View Source
const ( HTTPLexer = "HTTP" JavascriptLexer = "javascript" DefaultTheme = "base16-snazzy" AlternativeTheme = "doom-one" ColorScheme = "terminal16" )
Variables ¶
View Source
var SelectedRequest *rq.Request
Functions ¶
This section is empty.
Types ¶
type FileSelect ¶
type FileSelect struct {
// contains filtered or unexported fields
}
func NewFileSelectView ¶
func NewFileSelectView(path string) *FileSelect
func (*FileSelect) Mount ¶
func (f *FileSelect) Mount(app *tview.Application)
func (*FileSelect) SetCallback ¶
func (f *FileSelect) SetCallback(callback FileSelectedCallback)
type FileSelectedCallback ¶
type FileSelectedCallback func(string)
type RequestSelect ¶
type RequestSelect struct {
// contains filtered or unexported fields
}
func NewRequestSelectView ¶
func NewRequestSelectView(app *tview.Application, path string, previousView View) *RequestSelect
func (*RequestSelect) Mount ¶
func (f *RequestSelect) Mount(app *tview.Application)
func (*RequestSelect) SetCallback ¶
func (f *RequestSelect) SetCallback(callback RequestSelectedCallback)
type RequestSelectedCallback ¶
type RequestView ¶
type RequestView struct {
// contains filtered or unexported fields
}
func NewRequestView ¶
func NewRequestView(ctx context.Context, app *tview.Application, request rq.Request, previousView View) *RequestView
func (*RequestView) Mount ¶
func (view *RequestView) Mount(app *tview.Application)
type TextEditorView ¶ added in v0.4.0
type TextEditorView struct {
// contains filtered or unexported fields
}
func NewTextEditorView ¶ added in v0.4.0
func NewTextEditorView(ctx context.Context, app *tview.Application, cancelFunc func(), saveFunc func(string), title, text string) *TextEditorView
func (*TextEditorView) Mount ¶ added in v0.4.0
func (view *TextEditorView) Mount(app *tview.Application)
type View ¶
type View interface {
Mount(app *tview.Application)
}
Click to show internal directories.
Click to hide internal directories.