daemon

package
v0.6.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 27, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package daemon implements the core engine for Revere's daemon mode.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Daemon

type Daemon struct {
	*env.Env
	// contains filtered or unexported fields
}

Daemon represents the part of Revere that actually executes monitors and triggers and dispatches alerts.

func New

func New(env *env.Env) *Daemon

New initializes a new Daemon. To actually make the Daemon run, call Start.

func (*Daemon) Start

func (d *Daemon) Start()

Start starts running a Daemon.

func (*Daemon) Stop

func (d *Daemon) Stop()

Stop gracefully stops a Daemon. It tries to allow any in-progress delivery of alerts to finish before returning.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL