summaryrefslogtreecommitdiff
path: root/file.proto
diff options
context:
space:
mode:
Diffstat (limited to 'file.proto')
-rw-r--r--file.proto20
1 files changed, 20 insertions, 0 deletions
diff --git a/file.proto b/file.proto
index bb9f614..f2f6887 100644
--- a/file.proto
+++ b/file.proto
@@ -43,9 +43,27 @@ message MsgName {
repeated string sort = 7; // keys to sort on
repeated string unique = 8; // if the fields should have AppendUnique() functions
repeated MsgVar vars = 9; // store all the vars in the message
+ bool needIter = 10; // true if the sort iterator has not been generated yet
+ bool needAll = 11; // true if the sort iterator has not been generated yet
+}
+
+message Sort {
+ string msgName = 1; // `autogenpb:unique` File
+ string varType = 2; // `autogenpb:unique` MsgName
+ string varName = 3; // `autogenpb:unique` msgNames, sortNames
+ string lockname = 4; //
+ bool needAll = 5; //
+}
+
+message Find {
+ string parent = 1; // `autogenpb:unique` File
+ string varType = 2; // `autogenpb:unique` MsgName
+ string varName = 3; // `autogenpb:unique` msgNames, sortNames
+ bool needAll = 4; //
}
message File {
+ // `autogenpb:var:w io.Writer`
string Package = 1; // whatever the package name is at the top of the .go file
string filename = 2; // yellow.proto
string pbfilename = 3; // yellow.pb.go
@@ -58,6 +76,8 @@ message File {
// every struct in this proto file, this file has: "Apple", "Apples", ... "File", etc...
repeated MsgName msgNames = 9;
repeated MsgName sortNames = 10; // variables that are repeated can have the standard functions generated (Sort(), etc)
+ map<string, string> iterMap = 11;
+ repeated Sort toSort = 12; // variables that are repeated can have the standard functions generated (Sort(), etc)
}
// I know, I know, the whole point of using protobuf