跳转到主要内容

Chatie的gRPC

项目描述

GRPC

Node.js NPM PyPI Maven PHP Go

chatie grpc

NPM Version PyPI Version Java Version PHP Version

node Python 3.7 Go Version

Chatie的gRPC

用法

Node.js

@chatie/grpc@NPM

维护者

  • @huan - Huan LI (李卓桓)

Python

chatie-grpc@PyPI

维护者

Go

github.com/wechaty/go-grpc

维护者

Java

https://mvnrepository.com/artifact/io.github.wechaty/grpc

Maven

<dependency>
    <groupId>io.github.wechaty</groupId>
    <version>0.11.25</version>
    <artifactId>grpc</artifactId>
</dependency>

Gradle

compile 'io.github.wechaty:grpc:0.11.25'

维护者

PHP

github.com/wechaty/php-grpc

维护者

Csharp

Wechaty.Grpc @ Nuget

维护者

开发

调试

构建

./scripts/install-protoc.sh
npm install

https://github.com/google/protobuf/releases/latest

生成存根

npm run generate

1. JS for Protocol Buffer

protoc \
  --js_out="import_style=commonjs,binary:${OUT_DIR}"

https://github.com/google/protobuf/releases/latest

2. JS for gRPC存根

protoc \
  --plugin="protoc-gen-grpc=`which grpc_tools_node_protoc_plugin`" \
  --grpc_out="${OUT_DIR}"

https://npmjs.net.cn/package/grpc-tools

3. Protocol Buffer & gRPC存根的TypeScript类型定义

protoc \
  --plugin="protoc-gen-grpc=node_modules/grpc_tools_node_protoc_ts/bin/protoc-gen-ts" \
  --grpc_out="${OUT_DIR}"

https://github.com/agreatfool/grpc_tools_node_protoc_ts

4. JS & TS for gRPC Web

protoc \
  --plugin="protoc-gen-ts=node_modules/ts-protoc-gen/bin/protoc-gen-ts" \
  --ts_out="service=true:${OUT_DIR}"

https://github.com/improbable-eng/ts-protoc-gen

资源

文档

链接

协议缓冲区

gRPC Web

类型脚本生成器

动物园管理员

STUN

TCP打洞

逆向工程

Python存根

csharp grpc

HISTORY

v0.18(2020年10月15日)

  • 添加新的MessageFileStreamMessageImageStream以替换MessageFileMessageImage方法,以避免在发送大文件时阻塞nodejs事件循环(#88)由@windmemory
  • 添加新的MessageSendFileStream以替换MessageSendFile方法,以避免在发送大文件时阻塞nodejs事件循环(#89)由@windmemory

v0.17(2020年8月5日)

v0.13(2020年4月19日)

v0.11(2020年4月10日)

  • 添加Go支持(#50 by @dchaofei
  • 在<github.com/wechaty/go-grpc>发布Go模块

v0.6(2020年2月)

  • 使gRPC服务与Wechaty Puppet抽象保持一致
  • 添加单元测试

v0.2(2018年7月)

  • 自动生成gRPC存根
  • 发布到NPM

v0.0.1(2018年5月)

初始提交

MAINTAINER

Huan LI (李卓桓), Google开发者专家(机器学习ML GDE),zixia@zixia.net

Profile of Huan LI (李卓桓) on StackOverflow

COPYRIGHT & LICENSE

  • 代码 & 文档 © 2018-now Huan LI <zixia@zixia.net>
  • 代码在Apache-2.0许可下发布
  • 文档在Creative Commons许可下发布

项目详情


发布历史 发布通知 | RSS订阅

下载文件

下载适合您平台的文件。如果您不确定选择哪个,请了解有关安装包的更多信息。

源分发

chatie-grpc-0.18.12.tar.gz (14.7 kB 查看哈希值)

上传时间:

构建分发

chatie_grpc-0.18.12-py3-none-any.whl (10.5 kB 查看哈希值)

上传时间: Python 3

支持者