protobuf for settings
This commit is contained in:
parent
b7003bbc76
commit
93852523e6
|
@ -1,5 +1,6 @@
|
||||||
*.swp
|
*.swp
|
||||||
go.mod
|
go.mod
|
||||||
go.sum
|
go.sum
|
||||||
|
*.pb.go
|
||||||
|
|
||||||
gus
|
gus
|
||||||
|
|
9
Makefile
9
Makefile
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,5 @@
|
||||||
|
# gus
|
||||||
|
|
||||||
|
Squirl your way through any network.
|
||||||
|
|
||||||
|
* Meet [the Phantastic squirl Gus](https://www.youtube.com/watch?v=hFZFjoX2cGg)
|
|
@ -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;
|
||||||
|
}
|
Loading…
Reference in New Issue