Fetch the repository succeeded.
# Prerequests:
# 1. Install go
# 2. Install protoc
# 3. set $GOPATH
# Then run this scripts
#!/bin/bash
port=50051
host=localhost
listen=18890
go get -u github.com/tronprotocol/grpc-gateway
echo "Download github.com/tronprotocol/grpc-gateway successfully"
cd $GOPATH/src/github.com/tronprotocol/grpc-gateway
while [ -n "$1" ] ;do
case "$1" in
--rpcport)
port=$2
shift 2
;;
--rpchost)
host=$2
shift 2
;;
--httpport)
listen=$2
shift 2
;;
*)
;;
esac
done
nohup go run tron_http/main.go -port $port -host $host -listen $listen >> start_grpc_gateway.log 2>&1 &
echo "==Activate gateway=="
echo "grpc server : $host:$port"
echo "http port: $listen"
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。