grpc chat
1.0.0
เซิร์ฟเวอร์แชทง่าย ๆ/ไคลเอนต์ที่ใช้กับ GRPC ใน GO สร้างขึ้นด้วย❤สำหรับการพบปะของออเรนจ์เคาน์ตี้โกเฟอร์
โครงการนี้มีไว้เพื่อแสดงให้เห็นถึงคุณสมบัติบางอย่างของ GRPC ใน GO และไม่ควรใช้ในการผลิต
การติดตั้งต้องใช้เครื่องมือ GO
go install github.com/rodaine/grpc-chat$ grpc-chat --help
Usage of grpc-chat:
-h string
the chat server ' s host (default "0.0.0.0:6262")
-n string
the username for the client
-p string
the chat server ' s password
-s run as the server
-v enable debug logginggrpc-chat -s -p " super-secret "grpc-chat -h " chat.example.com:6262 " -p " super-secret " -n " Rodaine " Dockerfile รวมอยู่ในโครงการนี้และรูปภาพถูกโฮสต์บน Docker Hub
docker run --rm
-p 6262:6262
rodaine/grpc-chat
-s -p " super-secret "docker run --rm -i
rodaine/grpc-chat
-h " chat.example.com "
-p " super-secret "
-n " Rodaine "