summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Makefile5
-rw-r--r--backup.go (renamed from configBackup.go)0
-rw-r--r--config.proto20
3 files changed, 24 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 72f0e65..bdcc4b0 100644
--- a/Makefile
+++ b/Makefile
@@ -1,4 +1,4 @@
-all: goimports vet
+all: config.pb.go goimports vet
vet:
@GO111MODULE=off go vet
@@ -12,3 +12,6 @@ clean:
rm -f *.pb.go *.patch
-rm -f go.*
-go-mod-clean purge
+
+config.pb.go: config.proto
+ autogenpb --proto config.proto
diff --git a/configBackup.go b/backup.go
index 8d149c9..8d149c9 100644
--- a/configBackup.go
+++ b/backup.go
diff --git a/config.proto b/config.proto
new file mode 100644
index 0000000..b86de8f
--- /dev/null
+++ b/config.proto
@@ -0,0 +1,20 @@
+// Copyright 2025 WIT.COM Inc Licensed GPL 3.0
+
+syntax = "proto3";
+
+package config;
+
+import "google/protobuf/timestamp.proto"; // Import the well-known type for Timestamp
+
+message Config { //
+ string name = 1; // a map for what thing?
+ map<string, string> vals = 2; // a simple map
+ google.protobuf.Timestamp ctime = 3; // create time of the patch
+}
+
+message Configs { // `autogenpb:marshal` `autogenpb:nomutex`
+ string uuid = 1; // `autogenpb:uuid:3135d0f9-82a9-40b6-8aa1-b683ebe7bedd`
+ string version = 2; // `autogenpb:version:v0.0.1 go.wit.com/lib/config`
+ repeated Config configs = 3;
+ string filename = 4; // can store where the filename is so that saves can be automated
+}