zrpc

module
v0.0.0-...-a6d44c8 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 17, 2021 License: Apache-2.0

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

Directories

Path Synopsis
cmd
transform
utils

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL