Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/tegarpratama/golang-simple-grpc
https://github.com/tegarpratama/golang-simple-grpc
Last synced: 14 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/tegarpratama/golang-simple-grpc
- Owner: tegarpratama
- Created: 2024-12-09T16:37:32.000Z (23 days ago)
- Default Branch: master
- Last Pushed: 2024-12-10T02:27:29.000Z (22 days ago)
- Last Synced: 2024-12-10T03:23:13.915Z (22 days ago)
- Language: Go
- Size: 11.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Project Specs:
1. Gin Framework
2. gRPC## Endpoint List & Description
1. Project One
a. Check Health
URL: localhost:8080/health
Method: GETb. Send Message
URL: localhost:8080/message
Method: POST
Body:
{
"message": "Hello World"
}2. Project Two
a. Check Health
URL: localhost:8081/health
Method: GETb. Receiver RPC - Send Message
URL: localhost:50051
Proto: message.proto
Message:
{
"message": "Hello World"
}## Regenerate gRPC
```
protoc --go_out=. --go_opt=paths=source_relative --go-grpc_out=. --go-grpc_opt=paths=source_relative {proto_file_name}.proto
```