forwarder

package
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: MPL-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Image = "saucelabs/forwarder:${FORWARDER_VERSION}"

	ProxyServiceName         = "proxy"
	UpstreamProxyServiceName = "upstream-proxy"
	HttpbinServiceName       = "httpbin"
	GRPCTestServiceName      = "grpctest"
)

Variables

View Source
var (
	HttpbinSchemes = []string{"http", "https", "h2"}
	ProxySchemes   = []string{"http", "https"}
)

Functions

This section is empty.

Types

type Service

type Service compose.Service

func GRPCTestService added in v1.1.2

func GRPCTestService() *Service

func HttpbinService

func HttpbinService() *Service

func ProxyService

func ProxyService() *Service

func UpstreamProxyService

func UpstreamProxyService() *Service

func (*Service) Insecure added in v1.0.3

func (s *Service) Insecure() *Service

func (*Service) Service

func (s *Service) Service() *compose.Service

func (*Service) WithBasicAuth

func (s *Service) WithBasicAuth(auth string) *Service

func (*Service) WithCredentials

func (s *Service) WithCredentials(credentials, address string) *Service

func (*Service) WithDNSServer added in v1.0.3

func (s *Service) WithDNSServer(servers ...string) *Service

func (*Service) WithDNSTimeout added in v1.1.0

func (s *Service) WithDNSTimeout(timeout time.Duration) *Service

func (*Service) WithDenyDomains added in v1.1.0

func (s *Service) WithDenyDomains(domains ...string) *Service

func (*Service) WithDirectDomains added in v1.1.0

func (s *Service) WithDirectDomains(domains ...string) *Service

func (*Service) WithEnv

func (s *Service) WithEnv(key, val string) *Service

func (*Service) WithGoleak

func (s *Service) WithGoleak() *Service

func (*Service) WithHTTPDialTimeout added in v1.0.3

func (s *Service) WithHTTPDialTimeout(timeout time.Duration) *Service

func (*Service) WithHeader

func (s *Service) WithHeader(header string) *Service

func (*Service) WithIP added in v1.0.3

func (s *Service) WithIP(network, ipv4 string) *Service

func (*Service) WithLocalhostMode

func (s *Service) WithLocalhostMode(mode string) *Service

func (*Service) WithMITM added in v1.1.0

func (s *Service) WithMITM() *Service

func (*Service) WithMITMCACert added in v1.1.0

func (s *Service) WithMITMCACert() *Service

func (*Service) WithMITMDomains added in v1.1.0

func (s *Service) WithMITMDomains(domains ...string) *Service

func (*Service) WithPac

func (s *Service) WithPac(pac string) *Service

func (*Service) WithProtocol

func (s *Service) WithProtocol(protocol string) *Service

func (*Service) WithReadLimit added in v1.1.0

func (s *Service) WithReadLimit(limit string) *Service

func (*Service) WithResponseHeader

func (s *Service) WithResponseHeader(header string) *Service

func (*Service) WithSelfSigned added in v1.0.3

func (s *Service) WithSelfSigned(protocol string) *Service

func (*Service) WithUpstream

func (s *Service) WithUpstream(name, protocol string) *Service

func (*Service) WithWriteLimit added in v1.1.0

func (s *Service) WithWriteLimit(limit string) *Service

Jump to

Keyboard shortcuts

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