grafana/pkg/services/anonymous/service.go
Jo 40a1f8434d
Anon: Scaffold anon service (#74744)
* remove API tagging method and authed tagging

* add anonstore

move debug to after cache

change test order

fix issue where mysql trims to second

* add old device cleanup

lint

utc-ize everything

trim whitespace

* remove dangling setting

* Add delete devices

* Move anonymous authnclient to anonimpl

* Add simple post login hook

* move registration of Background Service

cleanup

* add updated_at index

* do not untag device if login err

* add delete device integration test
2023-09-25 16:25:29 +02:00

17 lines
222 B
Go

package anonymous
import (
"context"
"net/http"
)
type DeviceKind string
const (
AnonDeviceUI DeviceKind = "ui-anon-session"
)
type Service interface {
TagDevice(context.Context, *http.Request, DeviceKind) error
}