Documentation ¶
Overview ¶
Package net contains the Activator components that govern Activator's request throttling, routing, and reflect the cluster network state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Throttler ¶ added in v0.9.0
type Throttler struct {
// contains filtered or unexported fields
}
Throttler load balances requests to revisions based on capacity. When `Run` is called it listens for updates to revision backends and decides when and when and where to forward a request.
func NewThrottler ¶ added in v0.9.0
NewThrottler creates a new Throttler
func (*Throttler) Run ¶ added in v0.9.0
func (t *Throttler) Run(ctx context.Context, probeTransport http.RoundTripper, usePassthroughLb bool, meshMode netcfg.MeshCompatibilityMode)
Run starts the throttler and blocks until the context is done.
Click to show internal directories.
Click to hide internal directories.