grpc chat
1.0.0
Server/klien obrolan sederhana diimplementasikan dengan GRPC di Go. Dibangun dengan ❤️ untuk pertemuan orang Orange County Gopher.
Proyek ini untuk menunjukkan beberapa fitur GRPC di GO dan tidak boleh digunakan dalam produksi.
Instalasi membutuhkan GO Toolchain.
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 disertakan dengan proyek ini dan gambar di -host di hub Docker.
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 "