protob:Node.js的协议缓冲区

时间:2021-03-02 08:44:25
【文件属性】:
文件名称:protob:Node.js的协议缓冲区
文件大小:181KB
文件格式:ZIP
更新时间:2021-03-02 08:44:25
JavaScript Protob-Java的协议缓冲区 Protob(发音为PRO-tob)是针对Node.js和浏览器的功能齐全的协议缓冲区库。 它包括对以下内容的支持: 留言内容 枚举 服务 扩展名 多个扩展的名称冲突保护 选项 全动态反射 在浏览器中使用 从依赖库编译原型 protoc集成 Protob起源于Square,在该处常规使用所有这些功能。 该库借鉴了库中的代码。 谢谢! 设置 全局安装Protob npm install -g protob 安装protoc Protob使用protoc解析.proto文件,所以请确保您有它安装( brew install protobuf在OS X),然后再继续。 定义您的协议缓冲区 像往常一样,在.proto文件中定义协议缓冲区。 这些文件可以存放在您项目的目录中,也可以存放在它们自己的git repo中。 在项目的根目录中创建一个proto.j
【文件预览】:
protob-master
----jsdoc.json(221B)
----LICENSE.txt(557B)
----lib()
--------google_descriptors.js(18KB)
--------compiler.js(9KB)
--------enum.js(5KB)
--------service.js(5KB)
--------registry.js(11KB)
--------protob.js(5KB)
--------steven_init.js(943B)
--------message.js(24KB)
--------util.js(645B)
--------compiler()
--------version.js(26B)
----test()
--------protos.json(135B)
--------enum_test.js(3KB)
--------protos()
--------message_test.js(7KB)
--------protob_test.js(4KB)
--------service_test.js(4KB)
--------test_helper.js(938B)
--------util_test.js(438B)
--------acceptance()
--------compiled()
--------registry_test.js(2KB)
--------mocha.opts(12B)
----README.md(14KB)
----browser-protob.js(505KB)
----.gitignore(106B)
----index.js(423B)
----bin()
--------protob(3KB)
--------protob-collisions(3KB)
--------protoc-gen-json(2KB)
----package.json(908B)

网友评论