fastforward

package
v1.8.6 Latest Latest
Warning

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

Go to latest
Published: May 16, 2021 License: GPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const PluginType = "fast_forward"

Variables

This section is empty.

Functions

func Init

func Init(bp *handler.BP, args interface{}) (p handler.Plugin, err error)

Types

type Args

type Args struct {
	Deduplicate bool              `yaml:"deduplicate"`
	CA          []string          `yaml:"ca"`
	Timeout     int               `yaml:"timeout"`
	Upstream    []*UpstreamConfig `yaml:"upstream"`
}

type UpstreamConfig added in v0.21.0

type UpstreamConfig struct {
	Addr     string `yaml:"addr"` // required
	DialAddr string `yaml:"dial_addr"`
	Trusted  bool   `yaml:"trusted"`
	Socks5   string `yaml:"socks5"`

	IdleTimeout        int  `yaml:"idle_timeout"`
	MaxConns           int  `yaml:"max_conns"`
	InsecureSkipVerify bool `yaml:"insecure_skip_verify"`

	Protocol   string `yaml:"protocol"`    // Deprecated
	ServerName string `yaml:"server_name"` // Deprecated
	URL        string `yaml:"url"`         // Deprecated
	Timeout    int    `yaml:"timeout"`     // Deprecated
}

Jump to

Keyboard shortcuts

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