grpc chat
1.0.0
一個簡單的聊天服務器/客戶端在GO中實現。由奧蘭治縣的地鼠聚會建造。
該項目用於演示GO中GRPC的某些功能,不應在生產中使用。
安裝需要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 "