mirror of
https://github.com/grafana/grafana.git
synced 2025-07-29 18:02:23 +08:00

* first commit * add: pagination to anondevices * fmt * swagger and tests * swagger * testing out test * fixing tests * made it possible to query for from and to time * refactor: change to query for ip adress instead * fix: tests
26 lines
578 B
Go
26 lines
578 B
Go
package anonstore
|
|
|
|
import (
|
|
"context"
|
|
"time"
|
|
)
|
|
|
|
type FakeAnonStore struct {
|
|
}
|
|
|
|
func (s *FakeAnonStore) ListDevices(ctx context.Context, from *time.Time, to *time.Time) ([]*Device, error) {
|
|
return nil, nil
|
|
}
|
|
|
|
func (s *FakeAnonStore) CreateOrUpdateDevice(ctx context.Context, device *Device) error {
|
|
return nil
|
|
}
|
|
|
|
func (s *FakeAnonStore) CountDevices(ctx context.Context, from time.Time, to time.Time) (int64, error) {
|
|
return 0, nil
|
|
}
|
|
|
|
func (s *FakeAnonStore) SearchDevices(ctx context.Context, query SearchDeviceQuery) (*SearchDeviceQueryResult, error) {
|
|
return nil, nil
|
|
}
|