Documentation ¶
Index ¶
Constants ¶
View Source
const ( DelayReconnectFieldName = "client.socket.monitor.reconnect.delay" DelayReconnectDefault = 10 * time.Second )
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.DurationVar( &config.DelayReconnect, DelayReconnectFieldName, DelayReconnectDefault, "timeout between reconnect attempts", ) }) }, }
Functions ¶
This section is empty.
Types ¶
type Config ¶
func Configuration ¶
func Configuration(config *Config, configurator configurator.Configurator) *Config
type Identifier ¶
type Identifier uint32
type Monitor ¶
type Monitor interface { client.Client Status() status.ConnectStatus Reconnect() error Identifier() Identifier }
Click to show internal directories.
Click to hide internal directories.