Golang bosun-org-cmd-bosun-conf.Conf类(方法)实例源码

下面列出了Golang bosun-org-cmd-bosun-conf.Conf 类(方法)源码代码实例,从而了解它的用法。

作者: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
}


问题


面经


文章

微信
公众号

扫码关注公众号