Routing service (#36)

This commit is contained in:
ben-toogood
2021-01-08 16:20:28 +00:00
committed by GitHub
parent 39e0f94152
commit f8eb3bfd9b
10 changed files with 836 additions and 0 deletions

22
routing/Makefile Normal file
View File

@@ -0,0 +1,22 @@
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
.PHONY: proto
proto:
protoc --proto_path=. --micro_out=. --go_out=:. proto/routing.proto
.PHONY: build
build:
go build -o routing *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: docker
docker:
docker build . -t routing:latest