Documentation ¶
Index ¶
Constants ¶
View Source
const ( NumberAttemptsFieldName = "client.socket.monitor.reconnect.number_attempts" NumberAttemptsDefault = 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(BindFlags), }
Functions ¶
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.