add grpc server

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2022-11-28 13:19:46 +03:00
parent 5608190dbf
commit a46561f48a
16 changed files with 1810 additions and 0 deletions

19
grpc/Makefile Normal file
View File

@@ -0,0 +1,19 @@
GOPATH:=$(shell go env GOPATH)
GOBIN:=$(shell pwd)/bin
CGO_ENABLED=0
VERSION="v0.0.1"
DATE?=$(shell date -u "+%Y-%m-%d %H:%M:%S")
LDFLAGS=-s -w -X 'main.AppVersion=${VERSION}' -X 'main.BuildDate=${DATE}'
.PHONY: build
build:
go build -ldflags "$(LDFLAGS)" -a -installsuffix cgo -o bin/app -mod=readonly *.go
.PHONY: test
test:
go test -v ./... -cover
.PHONY: lint
lint:
golangci-lint run