Exemple #1
0
func MustNewHickwallCollector(interval string) *hickwall_collector {
	c := &hickwall_collector{
		enabled:  true,
		interval: newcore.NewInterval(interval).MustDuration(time.Second),
	}
	return c
}
Exemple #2
0
func NewHeartBeat(interval string) *heartbeat {
	c := &heartbeat{
		interval: newcore.NewInterval(interval).MustDuration(time.Second),
	}
	return c
}