component

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2023 License: MIT Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogConnect goproxy.FuncHttpsHandler = func(host string, ctx *goproxy.ProxyCtx) (*goproxy.ConnectAction, string) {

	return goproxy.MitmConnect, host
}

Functions

func NewFilteredList

func NewFilteredList(items []list.Item, width, height int) list.Model

Types

type ErrorPanel

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

func NewErrorPanel

func NewErrorPanel() *ErrorPanel

func (*ErrorPanel) Height

func (m *ErrorPanel) Height() int

func (*ErrorPanel) Init

func (*ErrorPanel) Init() tea.Cmd

func (*ErrorPanel) RaiseError

func (m *ErrorPanel) RaiseError(reason string, cause error) *ErrorPanel

func (*ErrorPanel) Resize

func (m *ErrorPanel) Resize(width, _ int) Model

func (*ErrorPanel) Update

func (m *ErrorPanel) Update(_ tea.Msg) (tea.Model, tea.Cmd)

func (*ErrorPanel) View

func (m *ErrorPanel) View() string

func (*ErrorPanel) Width

func (m *ErrorPanel) Width() int
type Footer struct {
	// contains filtered or unexported fields
}

func NewFooter

func NewFooter(keymap help.KeyMap) *Footer

func (*Footer) Height

func (m *Footer) Height() int

func (*Footer) Init

func (*Footer) Init() tea.Cmd

func (*Footer) Resize

func (m *Footer) Resize(width, _ int) Model

func (*Footer) SetKeyMap

func (m *Footer) SetKeyMap(keymap help.KeyMap) *Footer

func (*Footer) Update

func (m *Footer) Update(_ tea.Msg) (tea.Model, tea.Cmd)

func (*Footer) View

func (m *Footer) View() string

func (*Footer) Width

func (m *Footer) Width() int
type Header struct {
	// contains filtered or unexported fields
}

func NewHeader

func NewHeader(name, version, description string) *Header

func (*Header) Height

func (m *Header) Height() int

func (*Header) Init

func (*Header) Init() tea.Cmd

func (*Header) Resize

func (m *Header) Resize(width, _ int) Model

func (*Header) Update

func (m *Header) Update(_ tea.Msg) (tea.Model, tea.Cmd)

func (*Header) View

func (m *Header) View() string

func (*Header) Width

func (m *Header) Width() int

type Model

type Model interface {
	tea.Model

	Resize(width, height int) Model
	Width() int
	Height() int
}

type RequestTracer

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

func NewRequestTracer

func NewRequestTracer(port int) *RequestTracer

func (*RequestTracer) Height

func (m *RequestTracer) Height() int

func (*RequestTracer) Init

func (m *RequestTracer) Init() tea.Cmd

func (*RequestTracer) Resize

func (m *RequestTracer) Resize(width, height int) Model

func (*RequestTracer) Update

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

func (*RequestTracer) View

func (m *RequestTracer) View() string

func (*RequestTracer) Width

func (m *RequestTracer) Width() int

Jump to

Keyboard shortcuts

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