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