Documentation ¶
Index ¶
Constants ¶
View Source
const ( MaximumConnectionFieldName = "server.socket.max_connection" MaximumConnectionDefault = uint16(0) )
Variables ¶
View Source
var Component = &app.Component{ Dependencies: app.Components{ logger.Component, configurator.Component, }, Constructor: app.Constructor(func(container container.Container) error { return container.Provides( NewConfig, NewWithConfigurator, ) }), BindFlags: app.BindFlags(func(flagSet *pflag.FlagSet, container container.Container) error { return container.Invoke(func(config *Config) { flagSet.Uint16Var( &config.MaximumConnection, MaximumConnectionFieldName, MaximumConnectionDefault, "maximum number of simultaneous connections", ) }) }), }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
MaximumConnection uint16
}
func Configuration ¶
func Configuration(config *Config, configurator configurator.Configurator) *Config
type Limiter ¶
type Limiter interface { Inc() Dec() }
func NewWithConfigurator ¶
func NewWithConfigurator(config *Config, configurator configurator.Configurator, informer logger.Informer) Limiter
Click to show internal directories.
Click to hide internal directories.