MCPcopy
hub / github.com/syncthing/syncthing / NewDeviceStatisticsReference

Function NewDeviceStatisticsReference

lib/stats/device.go:29–33  ·  view source on GitHub ↗
(kv *db.Typed)

Source from the content-addressed store, hash-verified

27}
28
29func NewDeviceStatisticsReference(kv *db.Typed) *DeviceStatisticsReference {
30 return &DeviceStatisticsReference{
31 kv: kv,
32 }
33}
34
35func (s *DeviceStatisticsReference) GetLastSeen() (time.Time, error) {
36 t, ok, err := s.kv.Time(lastSeenKey)

Callers 3

NewModelFunction · 0.92
CommitConfigurationMethod · 0.92
TestDeviceStatFunction · 0.85

Calls

no outgoing calls

Tested by 1

TestDeviceStatFunction · 0.68