This commit is contained in:
Asim Aslam
2021-11-02 13:47:29 +00:00
parent 5b430aa22d
commit 18e5e61f79
14 changed files with 767 additions and 0 deletions

28
mq/Makefile Normal file
View File

@@ -0,0 +1,28 @@
GOPATH:=$(shell go env GOPATH)
.PHONY: init
init:
go get -u github.com/golang/protobuf/proto
go get -u github.com/golang/protobuf/protoc-gen-go
go get github.com/micro/micro/v3/cmd/protoc-gen-micro
go get github.com/micro/micro/v3/cmd/protoc-gen-openapi
.PHONY: api
api:
protoc --openapi_out=. --proto_path=. proto/mq.proto
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/mq.proto
.PHONY: build
build:
go build -o mq *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t mq:latest