feat: add protocol generate
This commit is contained in:
parent
d6fabde92d
commit
fb1e17b467
5 changed files with 24 additions and 1 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -2,3 +2,4 @@
|
|||
/run
|
||||
/starter/starter
|
||||
/starter/minrootfs
|
||||
/pkg/go/gen
|
||||
|
|
3
Makefile
3
Makefile
|
@ -2,11 +2,14 @@ all:
|
|||
make init
|
||||
make mkrootfs
|
||||
make compile
|
||||
make generate
|
||||
init:
|
||||
git clone https://github.com/alpinelinux/alpine-make-rootfs
|
||||
mv alpine-make-rootfs starter/alpine-make-rootfs
|
||||
mkrootfs:
|
||||
starter/create_rootfs.sh
|
||||
generate:
|
||||
buf generate
|
||||
compile:
|
||||
go build -o ./run
|
||||
gcc starter/starter.c -o starter/starter
|
||||
|
|
13
buf.gen.yaml
Normal file
13
buf.gen.yaml
Normal file
|
@ -0,0 +1,13 @@
|
|||
version: v1
|
||||
managed:
|
||||
enabled: true
|
||||
go_package_prefix:
|
||||
default: git.sch9.ru/new_gate/runner/pkg/go/gen
|
||||
plugins:
|
||||
- name: go
|
||||
out: pkg/go/gen
|
||||
opt: paths=source_relative
|
||||
- name: go-grpc
|
||||
out: pkg/go/gen
|
||||
opt: paths=source_relative
|
||||
|
7
buf.yaml
Normal file
7
buf.yaml
Normal file
|
@ -0,0 +1,7 @@
|
|||
version: v1
|
||||
breaking:
|
||||
use:
|
||||
- FILE
|
||||
lint:
|
||||
use:
|
||||
- DEFAULT
|
|
@ -1 +0,0 @@
|
|||
Subproject commit 603a74b1c3be906ef7439c982e4a32ea48e88954
|
Loading…
Reference in a new issue