config

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Backend

type Backend struct {
	Addr string `toml:"addr"`
}

type CAConf

type CAConf struct {
	Cert      string          `toml:"cert"`      // upstream CA cert for verifying targets
	Intercept InterceptCAConf `toml:"intercept"` // client-front: local MitM CA
}

type Config

type Config struct {
	Mode        string  `toml:"mode"`
	Listen      Listen  `toml:"listen"`
	Backend     Backend `toml:"backend"`
	Fingerprint FpConf  `toml:"fingerprint"`
	CA          CAConf  `toml:"ca"`
}

func Load

func Load(path string) (*Config, error)

Load reads and parses a TOML config file from path.

type FpConf

type FpConf struct {
	TLS TLSConf `toml:"tls"`
}

type InterceptCAConf

type InterceptCAConf struct {
	Cert string `toml:"cert"` // path to local CA cert (created if absent)
	Key  string `toml:"key"`  // path to local CA key  (created if absent)
}

type Listen

type Listen struct {
	Addr string `toml:"addr"`
}

type TLSConf

type TLSConf struct {
	JA4         string         `toml:"ja4"`
	Termination TLSTermination `toml:"termination"`
}

type TLSTermination

type TLSTermination struct {
	Cert string `toml:"cert"`
	Key  string `toml:"key"`
}

Jump to

Keyboard shortcuts

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