config

package
v0.0.0-...-85548f4 Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2019 License: GPL-3.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {

	// MITMProxy Config
	LogResponses        bool   `json:"log_responses"`
	CAKeyFile           string `json:"ca_key_file"`
	CACertFile          string `json:"ca_cert_file"`
	ListenAddr          string `json:"listen_addr"`
	HTTPSPorts          []int  `json:"https_ports"`
	HTTPPorts           []int  `json:"http_ports"`
	ForwardDNSServer    string `json:"forward_dns_server"`
	DNSPort             int    `json:"dns_port"`
	DNSRegex            string `json:"dns_regex"`
	DNSResolverOverride string `json:"dns_resolver_override"`

	// Log Config
	Level          log.Level  `json:"log_level"`
	Format         log.Format `json:"log_format"`
	RequestLogFile string     `json:"request_log_file"`
	WebHookURL     string     `json:"webhook_url"`
}

func (*Config) Write

func (c *Config) Write(filepath string) (err error)

Jump to

Keyboard shortcuts

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