Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type MonitorModule ¶
type MonitorModule struct { Storage storage.Storage Services []storage.Service Logger *zap.Logger // contains filtered or unexported fields }
func NewMonitorModule ¶
func NewMonitorModule(params MonitorModuleParams) (*MonitorModule, error)
func (*MonitorModule) Monitor ¶
func (m *MonitorModule) Monitor(ctx context.Context) (UpdatesChannel, error)
type MonitorModuleParams ¶ added in v1.1.0
type MonitorService ¶
type MonitorService struct { Config ServiceMonitorConfig // contains filtered or unexported fields }
func NewMonitorService ¶
func NewMonitorService(config ServiceMonitorConfig) *MonitorService
func (*MonitorService) Monitor ¶
func (s *MonitorService) Monitor(ctx context.Context) (ch ProbesChannel, err error)
type ProbesChannel ¶
type ProbesChannel chan error
type ServiceMonitorConfig ¶
type ServiceMonitorConfig struct { HttpGet probes.HttpGetConfig TcpSocket probes.TcpSocketConfig InitialDelaySeconds uint16 PeriodSeconds uint16 TimeoutSeconds uint16 }
type ServiceState ¶
type ServiceState string
const ( ServiceOnline ServiceState = "online" ServiceOffline ServiceState = "offline" )
type ServiceStatus ¶
type ServiceStatus struct { Id string Name string State ServiceState Error error }
type UpdatesChannel ¶
type UpdatesChannel chan ServiceStatus
Click to show internal directories.
Click to hide internal directories.