diff options
| author | Jeff Carr <[email protected]> | 2025-03-09 01:54:41 -0600 |
|---|---|---|
| committer | Jeff Carr <[email protected]> | 2025-03-09 01:54:41 -0600 |
| commit | 93852523e66c2646c8997c014f7c060b7baf0df8 (patch) | |
| tree | e4033a5b52b702493c83d02bf28b14c03bc95689 | |
| parent | b7003bbc767a66e2285c8d1c3b5a068a63af0efe (diff) | |
protobuf for settings
| -rw-r--r-- | .gitignore | 1 | ||||
| -rw-r--r-- | Makefile | 9 | ||||
| -rw-r--r-- | README | 3 | ||||
| -rw-r--r-- | README.md | 5 | ||||
| -rw-r--r-- | portmap.proto | 14 |
5 files changed, 28 insertions, 4 deletions
@@ -1,5 +1,6 @@ *.swp go.mod go.sum +*.pb.go gus @@ -3,7 +3,7 @@ VERSION = $(shell git describe --tags) BUILDTIME = $(shell date +%Y.%m.%d_%H%M) -all: build +all: portmap.pb.go goimports vet build ./gus --version ./gus @@ -25,6 +25,13 @@ debian: goimports: goimports -w *.go +vet: + @GO111MODULE=off go vet + @echo this go binary package builds okay + clean: rm -f go.* rm -f gus + +portmap.pb.go: portmap.proto + autogenpb --proto portmap.proto @@ -1,3 +0,0 @@ -# gus - -Squirl your way through any network. diff --git a/README.md b/README.md new file mode 100644 index 0000000..3f84554 --- /dev/null +++ b/README.md @@ -0,0 +1,5 @@ +# gus + +Squirl your way through any network. + +* Meet [the Phantastic squirl Gus](https://www.youtube.com/watch?v=hFZFjoX2cGg) diff --git a/portmap.proto b/portmap.proto new file mode 100644 index 0000000..c798895 --- /dev/null +++ b/portmap.proto @@ -0,0 +1,14 @@ +syntax = "proto3"; + +package gus; + +message Portmap { + int64 listen = 1; + string connect = 2; +} + +message Portmaps { // `autogenpb:marshal` `autogenpb:gui` + string uuid = 1; // `autogenpb:uuid:49a865ea-292d-48fd-8dc2-d0f82d5fd016` + string version = 2; // `autogenpb:version:v0.0.1` + repeated Portmap portmaps = 3; +} |
