作者:kroni
项目:bosu
func initSched(c *conf.Conf) (*Schedule, error) {
c.StateFile = ""
s := new(Schedule)
s.DataAccess = db
err := s.Init(c)
return s, err
}
作者:nickethie
项目:bosu
func initSched(c *conf.Conf) (*Schedule, error) {
c.StateFile = ""
s := new(Schedule)
s.DataAccess = &nopDataAccess{failingAlerts: map[string]bool{}}
err := s.Init(c)
return s, err
}
作者:eswd
项目:bosu
func initSched(c *conf.Conf) (*Schedule, error) {
c.StateFile = ""
s := new(Schedule)
s.DataAccess = &nopDataAccess{
failingAlerts: map[string]bool{},
incidents: map[uint64]*models.Incident{},
silences: map[string]*models.Silence{},
}
err := s.Init(c)
return s, err
}