Documentation ¶
Index ¶
Constants ¶
View Source
const ( NumberAttemptsFieldName = "client.socket.monitor.reconnect.number_attempts" NumberAttemptsDefault = uint16(0) )
Variables ¶
View Source
var Component = &app.Component{ Constructor: func(container container.Container) error { return container.Provides( NewConfig, NewWithConfigurator, ) }, BindFlags: func(flagSet *pflag.FlagSet, container container.Container) error { return container.Invoke(func(config *Config) { flagSet.Uint16Var( &config.NumberAttempts, NumberAttemptsFieldName, NumberAttemptsDefault, "maximum number of switching attempts", ) }) }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
NumberAttempts uint16
}
func Configuration ¶
func Configuration(config *Config, configurator configurator.Configurator) *Config
type Counter ¶
type Counter interface { Reset() Next() bool }
func NewWithConfigurator ¶
func NewWithConfigurator(config *Config, configurator configurator.Configurator, informer logger.Informer) Counter
Click to show internal directories.
Click to hide internal directories.