tkmpypy / grpc-sample-proto

gRPC sample repository

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

grpc-sample-golang

Guides

gRPC

Protocol Buffer(proto3)

Types

Prerequisites

  • Golang

  • Protocol buffer compiler

    • move binary at under the /bin to PATH
  • Go plugins

    $ go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
    $ go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
    $ export PATH="$PATH:$(go env GOPATH)/bin"
  • Document plugins

    $ go install github.com/pseudomuto/protoc-gen-doc/cmd/protoc-gen-doc@latest
  • Buf

Usage

Lint

buf lint

or

buf lint --error-format=json

Build

buf build

Generate Code

buf generate todoapis

Generate Doc

protoc --doc_out=html,index.html:./docs todo/todo//*.proto

About

gRPC sample repository


Languages

Language:Makefile 100.0%