mirror of
https://github.com/grafana/grafana.git
synced 2024-11-29 20:24:18 -06:00
a20309d7d2
* Feature: Parse user agent string in user auth token api response (#16222) * Adding UA Parser Go modules attempt (#16222) * Bring user agent vals up per req * fix tests * doc update * update to flatten, no maps * update doc
17 lines
566 B
Go
17 lines
566 B
Go
package dtos
|
|
|
|
import "time"
|
|
|
|
type UserToken struct {
|
|
Id int64 `json:"id"`
|
|
IsActive bool `json:"isActive"`
|
|
ClientIp string `json:"clientIp"`
|
|
Device string `json:"device"`
|
|
OperatingSystem string `json:"os"`
|
|
OperatingSystemVersion string `json:"osVersion"`
|
|
Browser string `json:"browser"`
|
|
BrowserVersion string `json:"browserVersion"`
|
|
CreatedAt time.Time `json:"createdAt"`
|
|
SeenAt time.Time `json:"seenAt"`
|
|
}
|