config

package
v0.0.0-...-8257b7f Latest Latest
Warning

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

Go to latest
Published: Jan 10, 2022 License: BSD-3-Clause 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 {
	Proxy struct {
		Port               string   `yaml:"port"`
		TrustedRootCaCerts []string `yaml:"trustedRootCaCerts"`
		ForgingRootCa      struct {
			Cert string `yaml:"cert"`
			Key  string `yaml:"key"`
		} `yaml:"forgingRootCa"`
	} `yaml:"proxy"`
	Paths struct {
		Doh     string `yaml:"doh"`
		Http    string `yaml:"http"`
		Session string `yaml:"session"`
	} `yaml:"paths"`
	Tamper struct {
		TypeA map[string][4]byte `yaml:"typeA"`
	} `yaml:"tamper"`
}

func ReadFile

func ReadFile(configFile string) (*Config, error)

Jump to

Keyboard shortcuts

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