mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 10:46:57 -07:00
new: api.rest now exposes polled_at time field for the object session
This commit is contained in:
parent
7d46e7aa7a
commit
529a1b48d9
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,7 @@ type sessionJSON struct {
|
|||
HID *network.HID `json:"hid"`
|
||||
Queue *packets.Queue `json:"packets"`
|
||||
StartedAt time.Time `json:"started_at"`
|
||||
PolledAt time.Time `json:"polled_at"`
|
||||
Active bool `json:"active"`
|
||||
GPS GPS `json:"gps"`
|
||||
Modules ModuleList `json:"modules"`
|
||||
|
@ -74,6 +75,7 @@ func (s *Session) MarshalJSON() ([]byte, error) {
|
|||
HID: s.HID,
|
||||
Queue: s.Queue,
|
||||
StartedAt: s.StartedAt,
|
||||
PolledAt: time.Now(),
|
||||
Active: s.Active,
|
||||
GPS: s.GPS,
|
||||
Modules: s.Modules,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue