app

package
v1.2.2 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Render

func Render(background string, foreground string) string

Types

type Buffer added in v1.0.0

type Buffer struct {
	Id    string
	Model Model
}

func CreateNewBuffer added in v1.0.0

func CreateNewBuffer() Buffer

type BufferModalModel added in v1.0.0

type BufferModalModel struct {
	OverlayActive bool
	Viewport      viewport.Model
	ViewportReady bool
	BufferHovered string
}

type MainModel

type MainModel struct {
	WindowWidth  int
	WindowHeight int

	Model
	ActiveBufferId   string
	Buffers          []Buffer
	IndexBuffers     map[string]int
	BufferModalModel BufferModalModel
}

func InitModel

func InitModel() MainModel

func (MainModel) BlurAll added in v0.0.3

func (m MainModel) BlurAll() MainModel

func (MainModel) BufferNavigation added in v1.0.0

func (m MainModel) BufferNavigation(msg tea.Msg) (MainModel, tea.Cmd)

func (MainModel) ChangeBuffer added in v1.0.0

func (m MainModel) ChangeBuffer(id string) MainModel

save old buffer and change the active buffer into new buffer

func (MainModel) DeleteBuffer added in v1.0.0

func (m MainModel) DeleteBuffer(id string) (MainModel, tea.Cmd)

func (MainModel) HandleHttpRequest

func (m MainModel) HandleHttpRequest() tea.Msg

func (MainModel) Init

func (m MainModel) Init() tea.Cmd

func (MainModel) StartRequest

func (m MainModel) StartRequest() (MainModel, tea.Cmd)

func (MainModel) Update

func (m MainModel) Update(msg tea.Msg) (tea.Model, tea.Cmd)

func (MainModel) View

func (m MainModel) View() string

type Model added in v1.0.0

type Model struct {
	UrlModel      url.UrlModel
	HintModel     hint.HintModel
	MethodModel   method.MethodModel
	ResponseModel response.ResponseModel
	RequestModel  request.RequestModel
	HelpModel     help.HelpModel
	// contains filtered or unexported fields
}

Jump to

Keyboard shortcuts

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