grpc chat
1.0.0
GOでGRPCを使用して実装されたシンプルなチャットサーバー/クライアント。オレンジカウンティゴーファーのミートアップ用に❤️で構築されています。
このプロジェクトは、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 "