tui

package
v0.2.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run() error

func RunWithConfig

func RunWithConfig(cfg ScanConfig) error

RunWithConfig launches the TUI with pre-populated configuration from CLI flags.

Types

type Model

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

func NewModel

func NewModel() Model

func NewModelWithConfig

func NewModelWithConfig(cfg ScanConfig) Model

NewModelWithConfig creates a Model pre-populated with the given config. Zero-value fields fall back to defaults.

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

type ScanConfig

type ScanConfig struct {
	Domain       string
	Pubkey       string
	Cert         string
	TestURL      string
	ProxyAuth    string
	Workers      int
	Timeout      int
	Count        int
	E2ETimeout   int
	EDNSSize     int
	QuerySize    int
	SkipPing     bool
	SkipNXDomain bool
	EDNS         bool
	E2E          bool
	DoH          bool
	OutputFile   string
}

Jump to

Keyboard shortcuts

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