grpc chat
1.0.0
Ein einfacher Chat -Server/Client, der mit GRPC in Go implementiert ist. Gebaut mit ❤️ für das Treffen des Orange County Gopher.
Dieses Projekt dient dazu, einige der Merkmale von GRPC in Go zu demonstrieren und sollte nicht in der Produktion verwendet werden.
Die Installation erfordert die 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 " In diesem Projekt ist eine Dockerfile enthalten und das Bild wird im Docker -Hub gehostet.
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 "