summaryrefslogtreecommitdiff
path: root/internal/app/store.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/app/store.go')
-rw-r--r--internal/app/store.go7
1 files changed, 4 insertions, 3 deletions
diff --git a/internal/app/store.go b/internal/app/store.go
index 9e046a4..ffe00c8 100644
--- a/internal/app/store.go
+++ b/internal/app/store.go
@@ -21,6 +21,10 @@ type hostData struct {
cpu map[string]collector.CPULine
}
+// Compile-time interface satisfaction checks.
+var _ stats.Source = (*Store)(nil)
+var _ collector.StatsStore = (*Store)(nil)
+
// NewStore creates an empty store.
func NewStore() *Store {
return &Store{hosts: make(map[string]*hostData)}
@@ -98,6 +102,3 @@ func (s *Store) getOrCreate(host string) *hostData {
}
return s.hosts[host]
}
-
-var _ stats.Source = (*Store)(nil)
-var _ collector.StatsStore = (*Store)(nil)