observed.go 774 B

1234567891011121314151617181920212223242526
  1. // Copyright (C) 2014 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 `json:"time" xml:"time,attr"`
  13. ID string `json:"id" xml:"id,attr"`
  14. Label string `json:"label" xml:"label,attr"`
  15. }
  16. type ObservedDevice struct {
  17. Time time.Time `json:"time" xml:"time,attr"`
  18. ID protocol.DeviceID `json:"deviceID" xml:"id,attr"`
  19. Name string `json:"name" xml:"name,attr"`
  20. Address string `json:"address" xml:"address,attr"`
  21. }