diff options
| author | Jeff Carr <[email protected]> | 2025-01-12 01:32:52 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-01-12 01:32:52 -0600 |
| commit | cfd9ec5ccddded628f4f9bf95beefc11dcfeb51b (patch) | |
| tree | 9db213a7458b52cec79ee68a0a2911ed2cb4b2f3 /file.proto | |
| parent | 0d2dc9fb2518a34d5f60836a92ebeef4d57a3943 (diff) | |
refactor again. I want to make this clean
as clean as possible because, I use this tool alot. everywhere.
I want it to always work. I need do not want it to break
Diffstat (limited to 'file.proto')
| -rw-r--r-- | file.proto | 20 |
1 files changed, 20 insertions, 0 deletions
@@ -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 |
