forwarder

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Dec 30, 2025 License: BSD-3-Clause Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrFailedPatternMatch  = errors.New("forward pattern match failed")
	ErrFailedTargetExtract = errors.New("could not determine target from context")
	ErrFailedForwarding    = errors.New("failed to forward request")
)

Functions

func NewComponent

func NewComponent(opts *Opts) composertypes.FlowComponent

Types

type Opts added in v0.3.0

type Opts struct {
	TargetContextKey composertypes.ContextKey
}

type Target

type Target interface {
	Host() string
	Port() int
}

Jump to

Keyboard shortcuts

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