forwarder

package
v0.0.0-...-3b31870 Latest Latest
Warning

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

Go to latest
Published: Jan 30, 2022 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Request *proto.ForwardEchoRequest
	UDS     string
	Dialer  common.Dialer

	// XDSTestBootstrap, for gRPC forwarders, is used to set the bootstrap without using a global one defined in the env
	XDSTestBootstrap []byte
	// Http proxy used for connection
	Proxy string
}

Config for a forwarder Instance.

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

Instance processes a single proto.ForwardEchoRequest, sending individual echo requests to the destination URL.

func New

func New(cfg Config) (*Instance, error)

New creates a new forwarder Instance.

func (*Instance) Close

func (i *Instance) Close() error

func (*Instance) Run

Run the forwarder and collect the responses.

Jump to

Keyboard shortcuts

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