mirror of
https://github.com/grafana/grafana.git
synced 2025-02-11 16:15:42 -06:00
* add ListDevices to service * improve fake * fix missing cfg field * cannot be unexported
22 lines
478 B
Go
22 lines
478 B
Go
package anonymous
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
"time"
|
|
|
|
"github.com/grafana/grafana/pkg/services/anonymous/anonimpl/anonstore"
|
|
)
|
|
|
|
type DeviceKind string
|
|
|
|
const (
|
|
AnonDeviceUI DeviceKind = "ui-anon-session"
|
|
)
|
|
|
|
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)
|
|
}
|