proxy

package
v0.1.7 Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2024 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func StartProxy

func StartProxy(logger *modifier.Logger, config *Config) *martian.Proxy

StartProxy - Starts the martian proxy and sets up the modifier. Nil config will set some reasonable defaults

Types

type Config

type Config struct {
	Port  uint   // port to listen on, default 8080
	Addr  string // ip address to listen on, default 0.0.0.0
	Proxy string // downstream proxy to use, optional.

	Cert string // CA certificate
	Key  string // key
}

Config - struct that holds the proxy config

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳