tui

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2026 License: MIT Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WriteExport

func WriteExport(
	allEvents []*tapv1.HTTPEvent,
	searchQuery string,
	filterErrors bool,
	format ExportFormat,
	dir string,
) (string, error)

WriteExport writes filtered events to a file and returns the path. dir specifies the output directory; if empty, the current directory is used.

Types

type ExportFormat

type ExportFormat int

ExportFormat specifies the output format for exports.

const (
	// ExportJSON exports as JSON.
	ExportJSON ExportFormat = iota
	// ExportMarkdown exports as Markdown.
	ExportMarkdown
)

type Model

type Model struct {
	// contains filtered or unexported fields
}

Model is the Bubble Tea model for the http-tap TUI.

func New

func New(target string) Model

New creates a new Model targeting the given http-tapd address.

func (Model) Init

func (m Model) Init() tea.Cmd

func (Model) Update

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

func (Model) View

func (m Model) View() string

Jump to

Keyboard shortcuts

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