config

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2025 License: Apache-2.0 Imports: 35 Imported by: 0

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 represents an AdaptiveProxy server instance.

func NewProxy

func NewProxy(cfg *config.Config) *Proxy

NewProxy creates a new Proxy instance with the given configuration. The cfg parameter is required and must not be nil. For full middleware and endpoint control, use NewProxyWithBuilder.

func NewProxyWithBuilder

func NewProxyWithBuilder(b *builder.Builder) *Proxy

NewProxyWithBuilder creates a new Proxy instance with a configuration builder. This allows full control over middlewares and endpoint configuration.

func (*Proxy) Run

func (p *Proxy) Run() error

Run starts the proxy server and blocks until shutdown.

Jump to

Keyboard shortcuts

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