runner

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Dec 11, 2020 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package runner contains the internal logic

Index

Constants

View Source
const Version = `0.0.1`

Version is the current version

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	OutputDirectory         string
	Verbose                 bool
	Silent                  bool
	Version                 bool
	ListenAddr              string
	ListenDNSAddr           string
	DNSMapping              string
	DNSFallbackResolver     string
	NoColor                 bool
	RequestDSL              string
	RequestMatchReplaceDSL  string
	ResponseDSL             string
	ResponseMatchReplaceDSL string
	UpstreamHTTPProxy       string
	UpstreamSocks5Proxy     string
}

Options of the internal 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