Add statistics fetcher interface

This commit is contained in:
2015-10-24 18:17:24 +03:00
parent 1550495bf9
commit 2ebd972a34
2 changed files with 19 additions and 4 deletions
+2 -2
View File
@@ -7,10 +7,10 @@ import (
)
type Group struct {
backends []satan.Statistics
backends []satan.StatsPublisher
}
func NewGroup(backends ...satan.Statistics) *Group {
func NewGroup(backends ...satan.StatsPublisher) *Group {
return &Group{
backends: backends,
}