1
0
mirror of https://github.com/muety/wakapi.git synced 2023-08-10 21:12:56 +03:00

feat: extract machine name from heartbeat requests (resolve #47)

This commit is contained in:
Ferdinand Mütsch
2020-08-29 21:20:23 +02:00
parent c0d6855546
commit 08a83af8da
4 changed files with 15 additions and 1 deletions

View File

@@ -20,6 +20,7 @@ type Heartbeat struct {
IsWrite bool `json:"is_write"`
Editor string `json:"editor"`
OperatingSystem string `json:"operating_system"`
Machine string `json:"machine"`
Time CustomTime `json:"time" gorm:"type:timestamp; default:CURRENT_TIMESTAMP; index:idx_time,idx_time_user"`
languageRegex *regexp.Regexp
}