https://github.com/tegarpratama/golang-simple-grpc
https://github.com/tegarpratama/golang-simple-grpc
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/tegarpratama/golang-simple-grpc
- Owner: tegarpratama
- Created: 2024-12-09T16:37:32.000Z (7 months ago)
- Default Branch: master
- Last Pushed: 2024-12-10T03:23:41.000Z (7 months ago)
- Last Synced: 2025-02-10T14:35:16.901Z (5 months ago)
- Language: Go
- Size: 15.6 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
```