| 1234567891011121314151617181920212223242526272829303132 |
- // Copyright (C) 2018 The Syncthing Authors.
- //
- // This Source Code Form is subject to the terms of the Mozilla Public
- // License, v. 2.0. If a copy of the MPL was not distributed with this file,
- // You can obtain one at https://mozilla.org/MPL/2.0/.
- syntax = "proto3";
- package main;
- import "repos/protobuf/gogoproto/gogo.proto";
- option (gogoproto.goproto_getters_all) = false;
- option (gogoproto.goproto_unkeyed_all) = false;
- option (gogoproto.goproto_unrecognized_all) = false;
- option (gogoproto.goproto_sizecache_all) = false;
- message DatabaseRecord {
- repeated DatabaseAddress addresses = 1 [(gogoproto.nullable) = false];
- int64 seen = 3; // Unix nanos, last device announce
- }
- message ReplicationRecord {
- bytes key = 1; // raw 32 byte device ID
- repeated DatabaseAddress addresses = 2 [(gogoproto.nullable) = false];
- int64 seen = 3; // Unix nanos, last device announce
- }
- message DatabaseAddress {
- string address = 1;
- int64 expires = 2; // Unix nanos
- }
|