Anon: Small fixes to anon service structure (#79566)
* add ListDevices to service * improve fake * fix missing cfg field * cannot be unexported
This commit is contained in:
@@ -4,6 +4,8 @@ import (
|
||||
"context"
|
||||
"net/http"
|
||||
"time"
|
||||
|
||||
"github.com/grafana/grafana/pkg/services/anonymous/anonimpl/anonstore"
|
||||
)
|
||||
|
||||
type DeviceKind string
|
||||
@@ -15,4 +17,5 @@ const (
|
||||
type Service interface {
|
||||
TagDevice(context.Context, *http.Request, DeviceKind) error
|
||||
CountDevices(ctx context.Context, from time.Time, to time.Time) (int64, error)
|
||||
ListDevices(ctx context.Context, from *time.Time, to *time.Time) ([]*anonstore.Device, error)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user