Documentation
¶
Overview ¶
Package runner contains the internal logic
Index ¶
Constants ¶
View Source
const Version = `0.0.7`
Version is the current version
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct {
OutputDirectory string
Directory string
CertCacheSize int
Verbose bool
Silent bool
Version bool
ListenAddrHTTP string
ListenAddrSocks5 string
ListenDNSAddr string
DNSMapping string // DNSMapping contains user provided hosts
DNSFallbackResolver string // Listen DNS Ip and port (ip:port)
NoColor bool // No Color
RequestDSL string // Request Filter DSL
RequestMatchReplaceDSL string // Request Match-Replace DSL
ResponseDSL string // Response Filter DSL
ResponseMatchReplaceDSL string // Request Match-Replace DSL
UpstreamHTTPProxies goflags.NormalizedStringSlice // Upstream HTTP comma separated Proxies (e.g. http://proxyip:proxyport)
UpstreamSocks5Proxies goflags.NormalizedStringSlice // Upstream SOCKS5 comma separated Proxies (e.g. socks5://proxyip:proxyport)
UpstreamProxyRequestsNumber int // Number of requests before switching upstream proxy
DumpRequest bool // Dump requests in separate files
DumpResponse bool // Dump responses in separate files
Deny goflags.FileNormalizedStringSlice // Deny ip/cidr
Allow goflags.FileNormalizedStringSlice // Allow ip/cidr
Elastic elastic.Options
Kafka kafka.Options
}
Options of the runner
func ParseOptions ¶
func ParseOptions() *Options
Click to show internal directories.
Click to hide internal directories.