runner

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2022 License: MIT Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package runner contains the internal logic

Index

Constants

View Source
const Version = `0.0.8`

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
	Verbosity                   types.Verbosity
	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

type Runner

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

Runner contains the internal logic of the program

func NewRunner

func NewRunner(options *Options) (*Runner, error)

NewRunner instance

func (*Runner) Close

func (r *Runner) Close()

Close the runner instance

func (*Runner) Run

func (r *Runner) Run() error

Run polling and notification

Jump to

Keyboard shortcuts

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