mirror of
https://github.com/grafana/grafana.git
synced 2025-02-15 01:53:33 -06:00
* experiment: attempt to tag only UI devices * lint frontend * use await * use shorthand check * do not assume build info exists * do not assume build info exists * Apply suggestions from code review Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com> --------- Co-authored-by: Alexander Zobnin <alexanderzobnin@gmail.com>
20 lines
363 B
Go
20 lines
363 B
Go
package anonymous
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
)
|
|
|
|
type DeviceKind string
|
|
|
|
const (
|
|
AnonDevice DeviceKind = "anon-session"
|
|
AuthedDevice DeviceKind = "authed-session"
|
|
AnonDeviceUI DeviceKind = "ui-anon-session"
|
|
AuthedDeviceUI DeviceKind = "ui-authed-session"
|
|
)
|
|
|
|
type Service interface {
|
|
TagDevice(context.Context, *http.Request, DeviceKind) error
|
|
}
|