mirror of https://github.com/statping/statping
19 lines
318 B
Go
19 lines
318 B
Go
package services
|
|
|
|
import (
|
|
"github.com/hunterlong/statping/types/hits"
|
|
"time"
|
|
)
|
|
|
|
func (s *Service) HitsColumnID() (string, int64) {
|
|
return "service", s.Id
|
|
}
|
|
|
|
func (s *Service) AllHits() hits.Hitters {
|
|
return hits.AllHits(s)
|
|
}
|
|
|
|
func (s *Service) HitsSince(t time.Time) hits.Hitters {
|
|
return hits.HitsSince(t, s)
|
|
}
|