package
1.2.0
Repository: https://github.com/bblfsh/server.git
Documentation: pkg.go.dev

# Packages

Package protocol is a generated protocol buffer package.

# Functions

AIMD returns a ScalingPolicy of additive increase / multiplicative decrease.
DefaultScalingPolicy returns a new instance of the default scaling policy.
GetLanguage detects the language of a file and returns it in a normalized form.
MinMax wraps a ScalingPolicy and applies a minimum and maximum to the number of instances.
MovingAverage computes a moving average of the load and forwards it to the underlying scaling policy.
No description provided by the author
NewDaemon creates a new server based on the runtime with the given version.
NewDriverInstance represents a running Driver in the runtime.
NewDriverPool creates and starts a new DriverPool.
No description provided by the author

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Variables

DefaultMaxInstancesPerDriver is the maximum number of instances of the same driver which can be launched following the default scaling policy (see DefaultScalingPolicy()).
DefaultPoolTimeout is the time a request to the DriverPool can wait before getting a driver assigned.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

No description provided by the author
Daemon is a Babelfish server.
DriverInstance represents an instance of a driver.
DriverPool controls a pool of drivers and balances requests among them, ensuring each driver does not get concurrent requests.
No description provided by the author
No description provided by the author

# Interfaces

No description provided by the author
ScalingPolicy specifies whether instances should be started or stopped to cope with load.

# Type aliases

FactoryFunction is a factory function that creates new DriverInstance's.
Function is a function to be executed using a given driver.