From 008644110ea13dd30748d4f2df78ef12eec0d85b Mon Sep 17 00:00:00 2001 From: Bo-Yi Wu Date: Wed, 1 Nov 2017 10:16:05 +0800 Subject: [PATCH] docs: enable grpc server. --- README.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 4acd662..c62ce7f 100644 --- a/README.md +++ b/README.md @@ -730,7 +730,13 @@ See the following error format. ## Run gRPC service -Gorush support [gRPC](https://grpc.io/) service. You can enable the gRPC in `config.yml`, default as disabled. The following example code for Golang to send single notification. +Gorush support [gRPC](https://grpc.io/) service. You can enable the gRPC in `config.yml`, default as disabled. Enable the gRPC server: + +```sh +$ GORUSH_GRPC_ENABLED=true GORUSH_GRPC_PORT=3000 gorush +``` + +The following example code to send single notification in Go. [embedmd]:# (rpc/example/go/client.go go) ```go