options

package
v0.1.2 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2022 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Option

type Option func(*Options)

func WithBrowserExecPath

func WithBrowserExecPath(p string) Option

browser

func WithBrowserIncognito

func WithBrowserIncognito(i bool) Option

func WithBrowserNoHeadless

func WithBrowserNoHeadless(n bool) Option

func WithBrowserProxy

func WithBrowserProxy(p string) Option

func WithDebug

func WithDebug(debug bool) Option

func WithLogOutJson

func WithLogOutJson(o bool) Option

log

func WithMitmAddr

func WithMitmAddr(addr string) Option

mitm

func WithMitmParentProxy

func WithMitmParentProxy(p string) Option

func WithMitmTargetHosts

func WithMitmTargetHosts(hosts ...string) Option

func WithMitmVerbose

func WithMitmVerbose(verbose bool) Option

func WithNotifierYaml

func WithNotifierYaml(f string) Option

func WithVeryVerbose

func WithVeryVerbose(verbose bool) Option

type Options

type Options struct {
	Debug        bool
	Verbose      bool
	NotifierYaml string
	Mitm         proxy.Config
	Log          logger.Config
	Browser      browser.Config
}

func New

func New() *Options

func (*Options) LogLevel

func (o *Options) LogLevel() logrus.Level

func (*Options) Set

func (o *Options) Set(opts ...Option) *Options

Jump to

Keyboard shortcuts

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