Skip to content

Commit

Permalink
chore: update go prot generated files
Browse files Browse the repository at this point in the history
Continue work on dbsync feature.

Signed-off-by: Alexander Trost <[email protected]>
  • Loading branch information
galexrt committed Jan 1, 2025
1 parent 52e3863 commit eaac2a0
Show file tree
Hide file tree
Showing 125 changed files with 7,935 additions and 6,952 deletions.
9 changes: 8 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ ifeq (, $(shell which buf))
$(GO) install github.com/bufbuild/buf/cmd/[email protected]
endif

protoc-gen-go:
$(GO) install google.golang.org/protobuf/cmd/protoc-gen-go@latest
$(GO) install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

protoc-gen-go-grpc:
$(GO) install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest

protoc-gen-validate: build_dir
if test ! -d $(BUILD_DIR)validate-$(VALIDATE_VERSION)/; then \
git clone --branch $(VALIDATE_VERSION) https://github.com/bufbuild/protoc-gen-validate.git $(BUILD_DIR)validate-$(VALIDATE_VERSION); \
Expand Down Expand Up @@ -106,7 +113,7 @@ gen-sql:
find ./query/fivenet/table -type f -iname '*.go' -exec sed -i 's~("fivenet", ~("", ~g' {} \;

.PHONY: gen-proto
gen-proto: protoc-gen-validate protoc-gen-customizer protoc-gen-fronthelper protoc-gen-doc
gen-proto: protoc-gen-go protoc-gen-go-grpc protoc-gen-validate protoc-gen-customizer protoc-gen-fronthelper protoc-gen-doc
mkdir -p ./gen/go/proto
PATH="$$PATH:./internal/cmd/protoc-gen-customizer/" \
$(PROTOC) \
Expand Down
4 changes: 4 additions & 0 deletions dbsync.example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ source:
# Refer to https://github.com/go-sql-driver/mysql#dsn-data-source-name for details
dsn: "DB_USER:DB_PASS@tcp(DB_HOST:DB_PORT)/DB_NAME?collation=utf8mb4_unicode_ci&parseTime=True&loc=Europe%2FBerlin"

destination:
url: "https://example.fivenet.app/"
token: "YOUR_SYNC_API_TOKEN"

# A query for each "piece of data" FiveNet needs to function
tables:
users:
Expand Down
28 changes: 13 additions & 15 deletions gen/go/proto/resources/accounts/accounts.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

34 changes: 16 additions & 18 deletions gen/go/proto/resources/accounts/oauth2.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

49 changes: 23 additions & 26 deletions gen/go/proto/resources/calendar/access.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit eaac2a0

Please sign in to comment.