Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type App ¶
type App struct {
// contains filtered or unexported fields
}
type AppConfig ¶ added in v0.1.5
type AppConfig struct {
Store FlowReader
Proxy ProxyInfo
CATrusted bool
Scripts ScriptManager
Throttle ThrottleController
MapLocal MapLocalManager
MapLocalFile string
}
AppConfig holds all dependencies for the TUI application.
type FlowReader ¶
type FlowReader interface {
List(filter store.Filter, offset, limit int) ([]store.FlowMeta, int)
Get(id store.FlowID) (*store.FlowMeta, *store.FlowData, error)
}
FlowReader is the read-only port the TUI uses to access captured flows.
type MapLocalManager ¶ added in v0.1.5
type MapLocalManager interface {
Rules() []maplocal.Rule
AddRule(r maplocal.Rule)
RemoveRule(index int)
SaveToFile(path string) error
}
MapLocalManager exposes map-local rule management to the TUI.
type ProxyInfo ¶
type ProxyInfo interface {
Addr() string
}
ProxyInfo exposes proxy status to the TUI (listen address, etc.).
type ScriptManager ¶ added in v0.1.5
type ScriptManager interface {
Scripts() []scripting.ScriptInfo
Toggle(filePath string) error
Delete(filePath string) error
CreateNew() (string, error)
ScriptDir() string
Reload()
}
ScriptManager exposes script operations to the TUI.
Click to show internal directories.
Click to hide internal directories.