openiothub_grpc_api

package module
v1.2.1 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2025 License: MIT Imports: 0 Imported by: 0

README

grpc-api

OpenIoTHub‘s Grpc API

https://grpc.io/docs/languages/go/quickstart/
https://grpc.io/docs/protoc-installation/
brew install protobuf
go install google.golang.org/protobuf/cmd/protoc-gen-go@latest
go install google.golang.org/grpc/cmd/protoc-gen-go-grpc@latest
dart pub global activate protoc_plugin
编译谷歌通用消息到dart,golang不用自己编译直接引用:
protoc --dart_out=grpc:lib google/protobuf/empty.proto google/protobuf/wrappers.proto
使用谷歌已经写好的常见消息,google.protobuf.Int32Value,google.protobuf.Empty:
https://www.jianshu.com/p/65ae77e4c517?utm_campaign=maleskine
引用谷歌proto:
https://github.com/google/protobuf.dart/issues/483

Documentation

The Go Gopher

There is no documentation for this package.

Directories

Path Synopsis
pb-go

Jump to

Keyboard shortcuts

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