* go mod init; rm -rf vendor * tweak proto files and generation * go mod vendor * clean up build.go * protobuf literals in tests * downgrade gogo/protobuf
16 lines
530 B
Protocol Buffer
16 lines
530 B
Protocol Buffer
syntax = "proto3";
|
|
|
|
package discover;
|
|
|
|
import "repos/protobuf/gogoproto/gogo.proto";
|
|
|
|
option (gogoproto.goproto_getters_all) = false;
|
|
option (gogoproto.sizer_all) = false;
|
|
option (gogoproto.protosizer_all) = true;
|
|
|
|
message Announce {
|
|
bytes id = 1 [(gogoproto.customname) = "ID", (gogoproto.customtype) = "github.com/syncthing/syncthing/lib/protocol.DeviceID", (gogoproto.nullable) = false];
|
|
repeated string addresses = 2;
|
|
int64 instance_id = 3 [(gogoproto.customname) = "InstanceID"];
|
|
}
|