Skip to content

Commit 055869b

Browse files
committed
Update package versions
1 parent f1d1a5b commit 055869b

File tree

14 files changed

+784
-466
lines changed

14 files changed

+784
-466
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,8 @@ gqlgen-generate: ## generate graphql resolver
3636
go run github.com/99designs/gqlgen
3737

3838
prototool-generate: ## generate proto file
39-
prototool generate resources/proto
39+
protoc --go_out=generated --go_opt=paths=source_relative --go-grpc_out=generated --go-grpc_opt=paths=source_relative resources/proto/products/products.proto
40+
protoc --go_out=generated --go_opt=paths=source_relative --go-grpc_out=generated --go-grpc_opt=paths=source_relative resources/proto/health_checks/health_checks.proto
4041

4142
build: init ## build binary file
4243
$(call build_resources) ;\

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,12 @@ Generate artifacts(binary files and configs)
9898
make build
9999
```
100100

101+
Packages for proto generator
102+
103+
```$xslt
104+
https://grpc.io/docs/languages/go/quickstart/#prerequisites
105+
```
106+
101107
Set APP_WD if you start to use html templates or path to ssh keys or run `make test`
102108

103109
```$xslt

app/graphql_resolver/mock.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,9 @@ import (
77
"github.com/aristat/golang-example-app/generated/resources/proto/products"
88
)
99

10-
type ProductServerMock struct{}
10+
type ProductServerMock struct {
11+
products.UnimplementedProductsServer
12+
}
1113

1214
func (s *ProductServerMock) ListProduct(ctx context.Context, in *products.ListProductIn) (*products.ListProductOut, error) {
1315
productIds := []int64{1, 2, 3, 4, 5}

cmd/health-check-service/health_check_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ type Config struct {
3232

3333
type server struct {
3434
cfg Config
35+
health_checks.UnimplementedHealthChecksServer
3536
}
3637

3738
func (s *server) IsAlive(ctx context.Context, empty *empty.Empty) (*health_checks.IsAliveOut, error) {

cmd/product-service/product_service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ type Config struct {
3737
type server struct {
3838
logger logger.Logger
3939
cfg Config
40+
products.UnimplementedProductsServer
4041
}
4142

4243
func (s *server) ListProduct(ctx context.Context, in *products.ListProductIn) (*products.ListProductOut, error) {

generated/resources/proto/health_checks/health_checks.pb.go

Lines changed: 165 additions & 137 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)