jason 6df63a5a78 暂存 2 gadi atpakaļ
..
v1 6df63a5a78 暂存 2 gadi atpakaļ
ReadMe.md 9725c1f45d init 2 gadi atpakaļ
common_service.pb.go ede612411d 人脸识别图片入库 2 gadi atpakaļ
common_service.proto ede612411d 人脸识别图片入库 2 gadi atpakaļ
device_service.pb.go 27fccb461c change 2 gadi atpakaļ
device_service.proto 27fccb461c change 2 gadi atpakaļ
garden_service.pb.go f0c2d574f3 add pb 2 gadi atpakaļ
garden_service.proto f0c2d574f3 add pb 2 gadi atpakaļ
mqtt_service.pb.go 7262412693 人脸识别门禁 2 gadi atpakaļ
mqtt_service.proto 7262412693 人脸识别门禁 2 gadi atpakaļ
setup.go ede612411d 人脸识别图片入库 2 gadi atpakaļ
system_service.pb.go 9725c1f45d init 2 gadi atpakaļ
system_service.proto 9725c1f45d init 2 gadi atpakaļ

ReadMe.md

必要条件

  1. 下载与安装protoc工具

    https://github.com/protocolbuffers/protobuf/releases

  2. 安装protoc Go插件:protoc-gen-go

    方式1(默认带omitempty):

    go get -u github.com/golang/protobuf/protoc-gen-go
    

    方式2(不带omitempty):

    git clone http://gitlab.sydip.com/repo/libs/go/gomodule
    cd mod /github.com/golang/protobuf@v1.3.4/protoc-gen-go/generator
    go build
    cp protoc-gen-go $GOBIN/
    

生成说明

  1. 普通生成 protoc --go_out=. *.proto
  2. 支持rpc protoc --go_out=plugins=grpc:. *.proto