mirror of
https://github.com/octoleo/syncthing.git
synced 2024-12-23 19:39:05 +00:00
20 lines
417 B
Protocol Buffer
20 lines
417 B
Protocol Buffer
|
syntax = "proto3";
|
||
|
|
||
|
package discosrv;
|
||
|
|
||
|
message DatabaseRecord {
|
||
|
repeated DatabaseAddress addresses = 1;
|
||
|
int64 seen = 3; // Unix nanos, last device announce
|
||
|
}
|
||
|
|
||
|
message ReplicationRecord {
|
||
|
bytes key = 1; // raw 32 byte device ID
|
||
|
repeated DatabaseAddress addresses = 2;
|
||
|
int64 seen = 3; // Unix nanos, last device announce
|
||
|
}
|
||
|
|
||
|
message DatabaseAddress {
|
||
|
string address = 1;
|
||
|
int64 expires = 2; // Unix nanos
|
||
|
}
|