func initSched(c *conf.Conf) (*Schedule, error) { c.StateFile = "" s := new(Schedule) s.DataAccess = db err := s.Init(c) return s, err }
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 }
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 }