Documentation ¶
Index ¶
Constants ¶
View Source
const ( DelayReconnectFieldName = "client.socket.monitor.reconnect.delay" DelayReconnectDefault = 10 * time.Second )
Variables ¶
View Source
var Component = &app.Component{ Dependencies: app.Components{ logger.Component, configurator.Component, runner.Component, counter.Component, }, Constructor: app.Constructor(func(container container.Container) error { return container.Provides( NewConfig, NewWithConfigurator, func(client Monitor) client.Client { return client }, ) }), BindFlags: app.BindFlags(BindFlags), Run: app.Run(func(container container.Container) error { return container.Invoke(func(client Monitor, runner runner.Runner) error { return runner.AddProcesses(client) }) }), }
Functions ¶
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 runner.Process Status() status.ConnectStatus Identifier() Identifier }
func NewWithConfigurator ¶
func NewWithConfigurator( config *Config, configurator configurator.Configurator, connectorConfig *connector.Config, counter counter.Counter, logger logger.Logger, ) Monitor
Click to show internal directories.
Click to hide internal directories.