observed.go 774 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2018 The Syncthing Authors.
  2. //
  3. // This Source Code Form is subject to the terms of the Mozilla Public
  4. // License, v. 2.0. If a copy of the MPL was not distributed with this file,
  5. // You can obtain one at https://mozilla.org/MPL/2.0/.
  6. package config
  7. import (
  8. "time"
  9. "github.com/syncthing/syncthing/lib/protocol"
  10. )
  11. type ObservedFolder struct {
  12. Time time.Time `xml:"time,attr" json:"time"`
  13. ID string `xml:"id,attr" json:"id"`
  14. Label string `xml:"label,attr" json:"label"`
  15. }
  16. type ObservedDevice struct {
  17. Time time.Time `xml:"time,attr" json:"time"`
  18. ID protocol.DeviceID `xml:"id,attr" json:"deviceID"`
  19. Name string `xml:"name,attr" json:"name"`
  20. Address string `xml:"address,attr" json:"address"`
  21. }