Documentation
¶
Index ¶
- Variables
- type Controller
- type ControllerOptions
- type Monitor
- func (m *Monitor) Delay() time.Duration
- func (m *Monitor) Interval() time.Duration
- func (m *Monitor) Module() string
- func (m *Monitor) Monitor(ctx context.Context, logger *slog.Logger) error
- func (m *Monitor) Probe() probe.Strategy
- func (m *Monitor) Stats() Stats
- func (m *Monitor) Timeout() time.Duration
- type MonitorOptions
- type Stats
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrNotRunning = errors.New("no probing in progress") ErrServerClosed = errors.New("controller has shut down") ErrReloadPending = errors.New("reload already in progress") )
View Source
var (
DefaultMonitorName = "unknown"
)
Functions ¶
This section is empty.
Types ¶
type Controller ¶
type Controller struct {
// contains filtered or unexported fields
}
func NewController ¶
func NewController(config string, opts ControllerOptions) *Controller
func (*Controller) ReloadMonitors ¶
func (c *Controller) ReloadMonitors(m ...*Monitor) error
func (*Controller) Run ¶
func (c *Controller) Run() error
func (*Controller) Stats ¶
func (c *Controller) Stats() []Stats
func (*Controller) Stop ¶
func (c *Controller) Stop() error
type ControllerOptions ¶
type MonitorOptions ¶
Click to show internal directories.
Click to hide internal directories.