Categorygithub.com/mike955/zrpc
repository
0.0.0-20210517013330-a6d44c8894e4
Repository: https://github.com/mike955/zrpc.git
Documentation: pkg.go.dev

# Packages

No description provided by the author
No description provided by the author
No description provided by the author

# README

zprc

zrpc is a go framework, it include cli tool, grpc and http framework.

Contents

Installation

1.install cli tool

go get -u github.com/mike955/zrpc/cmd/zrpc

2.install protobuf http plugin

go get -u github.com/mike955/zrpc/cmd/proto-gen-go-http

Create a service

1.create a new service

zrpc new demo

2.enter service folder

cd demo

3.generate protobuf files

protoc --proto_path=./api/.  --go-grpc_out=./api/ --go-http_out=./api/ --go_out=./api/ demo.proto

Update config

update global.yml

Run service

go run cmd/demo/main.go -f global.yml