proxy

package
v0.0.0-...-4a1e083 Latest Latest
Warning

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

Go to latest
Published: May 26, 2026 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Metrics

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

Metrics holds ingress proxy metrics.

func NewMetrics

func NewMetrics(meterProvider metric.MeterProvider) *Metrics

NewMetrics creates a new Metrics instance.

func (*Metrics) RecordConnectionBlocked

func (m *Metrics) RecordConnectionBlocked(ctx context.Context)

RecordConnectionBlocked records a connection that was blocked by the connection limit.

func (*Metrics) RecordConnectionDuration

func (m *Metrics) RecordConnectionDuration(ctx context.Context, durationMs int64)

RecordConnectionDuration records the duration of a proxied connection.

func (*Metrics) RecordConnectionsPerSandbox

func (m *Metrics) RecordConnectionsPerSandbox(ctx context.Context, count int64)

RecordConnectionsPerSandbox records the current connection count for a sandbox.

type SandboxProxy

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

func NewSandboxProxy

func NewSandboxProxy(meterProvider metric.MeterProvider, port uint16, sandboxes *sandbox.Map, featureFlags *featureflags.Client) (*SandboxProxy, error)

func (*SandboxProxy) Close

func (p *SandboxProxy) Close(ctx context.Context) error

func (*SandboxProxy) GetAddr

func (p *SandboxProxy) GetAddr() string

func (*SandboxProxy) OnInsert

func (p *SandboxProxy) OnInsert(_ context.Context, _ *sandbox.Sandbox)

OnInsert is called when a sandbox is inserted into the map.

func (*SandboxProxy) OnNetworkRelease

func (p *SandboxProxy) OnNetworkRelease(_ context.Context, sbx *sandbox.Sandbox)

OnNetworkRelease is called when a sandbox's network slot is released. Keyed by LifecycleID so the removal is scoped to this sandbox lifecycle.

func (*SandboxProxy) RemoveFromPool

func (p *SandboxProxy) RemoveFromPool(connectionKey string) error

func (*SandboxProxy) Start

func (p *SandboxProxy) Start(ctx context.Context) error

Jump to

Keyboard shortcuts

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