Create an initial gRPC service

This commit adds protobuf files and tooling surrounding generating APIs
and datatypes.
This commit is contained in:
Kristoffer Dalby 2021-10-26 20:37:37 +00:00
parent e8277595f5
commit b096a2e7e5
6 changed files with 143 additions and 0 deletions

21
buf.gen.yaml Normal file
View file

@ -0,0 +1,21 @@
version: v1
plugins:
- name: go
out: gen/go
opt:
- paths=source_relative
- name: go-grpc
out: gen/go
opt:
- paths=source_relative
- name: grpc-gateway
out: gen/go
opt:
- paths=source_relative
- generate_unbound_methods=true
# - name: gorm
# out: gen/go
# opt:
# - paths=source_relative,enums=string,gateway=true
- name: openapiv2
out: gen/openapiv2