tui

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2026 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Tui

type Tui struct {
	Ui            *tview.Application
	HttpService   service.HttpClientService
	ServerService service.ServerService
	Components    *UIComponents
	State         *UIState
	Config        *config.Config

	ServerUpdateChannel chan service.UIEvent
	// contains filtered or unexported fields
}

func NewTui

func NewTui(cfg *config.Config) *Tui

func (*Tui) Initialize

func (tui *Tui) Initialize() error

func (*Tui) Start

func (tui *Tui) Start() error

type UIComponents

type UIComponents struct {
	MainLayout   *tview.Flex
	Form         *tview.Form
	LogoText     *tview.TextView
	BindingsText *tview.TextView
	ServerStatus *tview.TextView
	ServerPath   *tview.InputField

	MethodDropdown *tview.DropDown
	URLInput       *tview.InputField
	HeadersText    *tview.TextArea
	ParamsText     *tview.TextArea
	BodyText       *tview.TextArea
	BodyType       *tview.DropDown

	ResponseView *tview.TextView

	RequestList *tview.List
	NameInput   *tview.InputField
	StatusText  *tview.TextView
}

type UIState

type UIState struct {
	CurrentRequest        *domain.Request
	SavedRequests         []*domain.Request
	CurrentResponse       *domain.Response
	CurrentFormFocusIndex int
	CurrentFocused        tview.Primitive
}

Jump to

Keyboard shortcuts

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