module
Version:
v0.0.1
Opens a new window with list of versions in this module.
Published: Jun 7, 2021
License: MIT
Opens a new window with license information.
README
¶
gRPC
Prepare
Copy google/api/annotations.proto and google/api/http.proto
Refer:
https://github.com/grpc-ecosystem/grpc-gateway/issues/1935
mkdir -p google/api
wget https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/annotations.proto -O google/api/annotations.proto
wget https://raw.githubusercontent.com/googleapis/googleapis/master/google/api/http.proto -O google/api/http.proto
Generate
Refer:
https://www.kuiki.cn/protobuf-import-package/
protoc -I "./" -I "../../../" \
--go_out=. --go_opt=paths=source_relative \
--go-grpc_out=. --go-grpc_opt=paths=source_relative \
api/fetchnews/bbc/v1/fetchnews.proto
go mod tidy
TODO
- add filter to ignore news by UpdateTime
- display ms title on server running.
Directories
¶
Click to show internal directories.
Click to hide internal directories.