protobuf for settings

This commit is contained in:
Jeff Carr 2025-03-09 01:54:41 -06:00
parent b7003bbc76
commit 93852523e6
5 changed files with 28 additions and 4 deletions

1
.gitignore vendored
View File

@ -1,5 +1,6 @@
*.swp *.swp
go.mod go.mod
go.sum go.sum
*.pb.go
gus gus

View File

@ -3,7 +3,7 @@
VERSION = $(shell git describe --tags) VERSION = $(shell git describe --tags)
BUILDTIME = $(shell date +%Y.%m.%d_%H%M) BUILDTIME = $(shell date +%Y.%m.%d_%H%M)
all: build all: portmap.pb.go goimports vet build
./gus --version ./gus --version
./gus ./gus
@ -25,6 +25,13 @@ debian:
goimports: goimports:
goimports -w *.go goimports -w *.go
vet:
@GO111MODULE=off go vet
@echo this go binary package builds okay
clean: clean:
rm -f go.* rm -f go.*
rm -f gus rm -f gus
portmap.pb.go: portmap.proto
autogenpb --proto portmap.proto

3
README
View File

@ -1,3 +0,0 @@
# gus
Squirl your way through any network.

5
README.md Normal file
View File

@ -0,0 +1,5 @@
# gus
Squirl your way through any network.
* Meet [the Phantastic squirl Gus](https://www.youtube.com/watch?v=hFZFjoX2cGg)

14
portmap.proto Normal file
View File

@ -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;
}