tui

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2023 License: MIT Imports: 15 Imported by: 0

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 Command

type Command struct {
	Handler func()
	Name    string
	Rune    rune
	Key     tcell.Key
}

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 RequestSelectedCallback func(request rq.Request)

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 Response

type Response struct {
	rq.Response
	// contains filtered or unexported fields
}

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)
}

Jump to

Keyboard shortcuts

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