blob: 6ef7075a1f425423523abd98486e5cc3ba5611a4 [file] [edit]
package observer
import (
blog "github.com/letsencrypt/boulder/log"
_ "github.com/letsencrypt/boulder/observer/probers/dns"
_ "github.com/letsencrypt/boulder/observer/probers/http"
)
// Observer is the steward of goroutines started for each `monitor`.
type Observer struct {
logger blog.Logger
monitors []*monitor
}
// Start spins off a goroutine for each monitor and then runs forever.
func (o Observer) Start() {
for _, mon := range o.monitors {
go mon.start(o.logger)
}
select {}
}