43a8b2a8c9
* Auth: Rename Sessions to Devices in counting (#72432)
* rename session to device
* rename session to device
* Auth: Add authed device tagging (#72442)
* add authed device tagging
* fix config
* implement feedback
* implement feedback
* add reverse untag behavior
* remove duplicate stat
* Update pkg/services/anonymous/anonimpl/impl.go
(cherry picked from commit 3353b1a8aa)
18 lines
263 B
Go
18 lines
263 B
Go
package anonymous
|
|
|
|
import (
|
|
"context"
|
|
"net/http"
|
|
)
|
|
|
|
type DeviceKind string
|
|
|
|
const (
|
|
AnonDevice DeviceKind = "anon-session"
|
|
AuthedDevice DeviceKind = "authed-session"
|
|
)
|
|
|
|
type Service interface {
|
|
TagDevice(context.Context, *http.Request, DeviceKind) error
|
|
}
|