httpproxy

package
v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AdaptiveScaler

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

func NewAdaptiveScaler

func NewAdaptiveScaler() *AdaptiveScaler

func (*AdaptiveScaler) GetMode

func (a *AdaptiveScaler) GetMode(input string) string

type AdaptiveScalingConfig

type AdaptiveScalingConfig struct {
	ShortThreshold int
	LongThreshold  int
	ShortMode      string
	LongMode       string
}

type HTTPProxy

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

func NewHTTPProxy

func NewHTTPProxy(config *ProxyConfig) *HTTPProxy

func (*HTTPProxy) Start

func (p *HTTPProxy) Start() error

func (*HTTPProxy) Stop

func (p *HTTPProxy) Stop() error

type ModelFallbackManager

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

func NewModelFallbackManager

func NewModelFallbackManager(primary string, fallbacks ...string) *ModelFallbackManager

func (*ModelFallbackManager) GetAll

func (m *ModelFallbackManager) GetAll() []string

func (*ModelFallbackManager) GetModel

func (m *ModelFallbackManager) GetModel(statusCode int) string

type OpenTelemetryCollector

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

func NewOpenTelemetryCollector

func NewOpenTelemetryCollector(config *OpenTelemetryConfig) *OpenTelemetryCollector

func (*OpenTelemetryCollector) ExportMetrics

func (o *OpenTelemetryCollector) ExportMetrics() string

func (*OpenTelemetryCollector) RecordMetric

func (o *OpenTelemetryCollector) RecordMetric(name string, value float64, labels map[string]string)

type OpenTelemetryConfig

type OpenTelemetryConfig struct {
	ServiceName string
	Endpoint    string
	SampleRate  float64
}

type ProxyConfig

type ProxyConfig struct {
	ListenAddr   string
	UpstreamURL  string
	CompressFunc func(string) string
	Timeout      time.Duration
	MaxBodySize  int64
}

Jump to

Keyboard shortcuts

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