Skip to content

Commit

Permalink
增加go micro 文件
Browse files Browse the repository at this point in the history
  • Loading branch information
v_djmdeng committed Jul 21, 2022
1 parent d02544a commit b0f0008
Show file tree
Hide file tree
Showing 9 changed files with 110 additions and 498 deletions.
14 changes: 8 additions & 6 deletions consignment-service/Makefile
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
build:
# protoc --proto_path=. --go_out=proto/consignment/ --micro_out=./ \
# proto/consignment/consignment.proto
protoc --proto_path=. \
--micro_out=./ \
--micro_opt=paths=source_relative \
consignment.proto
protoc --proto_path=./ \
--go_out=./ \
--go_opt=paths=source_relative \
consignment.proto
protoc --proto_path=./ \
--go-grpc_opt=require_unimplemented_servers=false --go-grpc_out=. \
--go-grpc_opt=paths=source_relative \
consignment.proto
# protoc --proto_path=./ \
# --go-grpc_opt=require_unimplemented_servers=false --go-grpc_out=. \
# --go-grpc_opt=paths=source_relative \
# consignment.proto

8 changes: 4 additions & 4 deletions consignment-service/consignment.pb.go

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

139 changes: 0 additions & 139 deletions consignment-service/consignment_grpc.pb.go

This file was deleted.

17 changes: 12 additions & 5 deletions consignment-service/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,21 @@ module github.com/Jimmy01010/protocol/consignment-service
go 1.18

require (
google.golang.org/grpc v1.47.0
go-micro.dev/v4 v4.7.0
google.golang.org/protobuf v1.28.0
)

require (
github.com/golang/protobuf v1.5.2 // indirect
golang.org/x/net v0.0.0-20201021035429-f5854403a974 // indirect
golang.org/x/sys v0.0.0-20210119212857-b64e53b001e4 // indirect
golang.org/x/text v0.3.3 // indirect
google.golang.org/genproto v0.0.0-20200526211855-cb27e3aa2013 // indirect
github.com/google/go-cmp v0.5.6 // indirect
github.com/google/uuid v1.2.0 // indirect
github.com/miekg/dns v1.1.43 // indirect
github.com/oxtoacart/bpool v0.0.0-20190530202638-03653db5a59c // indirect
github.com/patrickmn/go-cache v2.1.0+incompatible // indirect
github.com/pkg/errors v0.9.1 // indirect
golang.org/x/net v0.0.0-20210510120150-4163338589ed // indirect
golang.org/x/sync v0.0.0-20210220032951-036812b2e83c // indirect
golang.org/x/sys v0.0.0-20210502180810-71e4cd670f79 // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
)
Loading

0 comments on commit b0f0008

Please sign in to comment.