use go generate instead of make for protoc
This commit is contained in:
3
proto/gen.go
Normal file
3
proto/gen.go
Normal file
@@ -0,0 +1,3 @@
|
||||
package proto
|
||||
|
||||
//go:generate protoc --go_out=. mf.proto
|
||||
39
proto/mf.proto
Normal file
39
proto/mf.proto
Normal file
@@ -0,0 +1,39 @@
|
||||
syntax = "proto3";
|
||||
|
||||
option go_package = "mfer";
|
||||
|
||||
message MFFile {
|
||||
enum Version {
|
||||
NONE = 0;
|
||||
ONE = 1; // only one for now
|
||||
}
|
||||
Version version = 1;
|
||||
bytes innerMessage = 2;
|
||||
uint64 size = 3;
|
||||
bytes crc32 = 4;
|
||||
|
||||
// think we might use gosignify instead of gpg:
|
||||
// github.com/frankbraun/gosignify
|
||||
|
||||
//detached signature, ascii or binary
|
||||
optional bytes signature = 5;
|
||||
//full GPG key id
|
||||
optional bytes signer = 6;
|
||||
//full GPG signing public key, ascii or binary
|
||||
optional bytes signingPubKey = 7;
|
||||
}
|
||||
|
||||
message MFFilePath {
|
||||
string path = 1;
|
||||
// FIXME checksum/hash here
|
||||
}
|
||||
|
||||
message MFFileInner {
|
||||
enum Version {
|
||||
NONE = 0;
|
||||
ONE = 1; // only one for now
|
||||
}
|
||||
Version version = 1;
|
||||
uint64 count = 2;
|
||||
repeated MFFilePath files = 3;
|
||||
}
|
||||
Reference in New Issue
Block a user