Documentation ¶
Index ¶
- func NewPort() (int, error)
- func NewReverseProxyNGINXServer(t testing.TB, hostname string, upstreams map[string]string) string
- func NewUpstreamEchoNGINXServer(t testing.TB, hostname string) string
- func NewUpstreamServer(t *testing.T, host string) *httptest.Server
- type Relayer
- type RoundTripOnErrorRelayer
- type SimpleRelayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Relayer ¶
type Relayer struct {
// contains filtered or unexported fields
}
func NewRelayer ¶
func (*Relayer) GetCertificate ¶
func (r *Relayer) GetCertificate(i *tls.ClientHelloInfo) (*tls.Certificate, error)
type RoundTripOnErrorRelayer ¶
type RoundTripOnErrorRelayer struct {
SimpleRelayer
}
func NewRoundTripOnErrorRelayer ¶
func NewRoundTripOnErrorRelayer(h map[string]string) *RoundTripOnErrorRelayer
func (*RoundTripOnErrorRelayer) RoundTripOnError ¶
type SimpleRelayer ¶
type SimpleRelayer struct {
// contains filtered or unexported fields
}
func NewSimpleRelayer ¶
func NewSimpleRelayer(h map[string]string) *SimpleRelayer
func (*SimpleRelayer) GetUpstream ¶
Click to show internal directories.
Click to hide internal directories.