Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Proxy ¶
type Proxy struct {
// contains filtered or unexported fields
}
Proxy is an egress proxy server.
func NewProxy ¶
func NewProxy(logger *slog.Logger, addr string, opts ...ProxyOption) *Proxy
NewProxy creates a new egress proxy. By default, only loopback destinations are allowed.
func NewProxyWithAllowedDestinations ¶
NewProxyWithAllowedDestinations creates a proxy with an explicit destination allowlist.
type ProxyOption ¶
type ProxyOption func(*Proxy)
func WithAllowedDestinations ¶
func WithAllowedDestinations(entries []string) ProxyOption
WithAllowedDestinations adds explicit host, host:port, IP, or CIDR destinations. Loopback destinations are allowed by default.
Click to show internal directories.
Click to hide internal directories.