protoc-gen-ts:将协议缓冲区消息编译为 Typescript-源码

上传者: 42132056 | 上传时间: 2021-08-03 18:05:04 | 文件大小: 118KB | 文件类型: ZIP
Protoc Gen 打字稿 直接通过TypeScript Compiler API从 Proto 文件生成适当的协议缓冲区源。 该插件生成可用于 AMD、UMD、CommonJS 模块系统的纯Typescript文件。 这个 protoc 插件的目的是通过采用现代方法在 Javascript/Typescript 中轻松使用协议缓冲区。 例子 syntax = "proto3" ; message Change { Kind kind = 1 ; string patch = 2 ; repeated string tags = 3 ; oneof name_or_id { string name = 4 ; string id = 5 ; } } enum Kind { UPDATED = 0 ;

文件下载

资源详情

[{"title":"( 99 个子文件 118KB ) protoc-gen-ts:将协议缓冲区消息编译为 Typescript-源码","children":[{"title":"protoc-gen-ts-master","children":[{"title":".gitignore <span style='color:#111;'> 223B </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 4.94KB </span>","children":null,"spread":false},{"title":"third-party","children":[{"title":"protobuf","children":null,"spread":false}],"spread":true},{"title":".gitmodules <span style='color:#111;'> 119B </span>","children":null,"spread":false},{"title":"bin","children":[{"title":"protoc-gen-ts <span style='color:#111;'> 44B </span>","children":null,"spread":false},{"title":"BUILD.bazel <span style='color:#111;'> 428B </span>","children":null,"spread":false},{"title":"protoc-gen-ts.cmd <span style='color:#111;'> 420B </span>","children":null,"spread":false}],"spread":true},{"title":".github","children":[{"title":"workflows","children":[{"title":"test.yaml <span style='color:#111;'> 605B </span>","children":null,"spread":false}],"spread":true},{"title":"FUNDING.yml <span style='color:#111;'> 121B </span>","children":null,"spread":false}],"spread":true},{"title":"test","children":[{"title":"map.spec.ts <span style='color:#111;'> 2.62KB </span>","children":null,"spread":false},{"title":"serialization.spec.ts <span style='color:#111;'> 305B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 122B </span>","children":null,"spread":false},{"title":"conformance","children":[{"title":"map","children":[{"title":"map.spec.ts <span style='color:#111;'> 658B </span>","children":null,"spread":false},{"title":"maps","children":[{"title":"map.pb.go <span style='color:#111;'> 8.85KB </span>","children":null,"spread":false},{"title":"map.proto <span style='color:#111;'> 286B </span>","children":null,"spread":false}],"spread":false},{"title":"map.go <span style='color:#111;'> 567B </span>","children":null,"spread":false},{"title":"go.mod <span style='color:#111;'> 128B </span>","children":null,"spread":false},{"title":"map.bin <span style='color:#111;'> 80B </span>","children":null,"spread":false},{"title":"go.sum <span style='color:#111;'> 726B </span>","children":null,"spread":false}],"spread":true},{"title":"packedproto2","children":[{"title":"packedproto2.spec.ts <span style='color:#111;'> 611B </span>","children":null,"spread":false},{"title":"packedproto2.proto <span style='color:#111;'> 22.89KB </span>","children":null,"spread":false},{"title":"packedproto2.bin <span style='color:#111;'> 1.06KB </span>","children":null,"spread":false}],"spread":true}],"spread":true},{"title":"rpc_experimental.spec.ts <span style='color:#111;'> 1.80KB </span>","children":null,"spread":false},{"title":"generation","children":[{"title":"descriptor.proto <span style='color:#111;'> 37.06KB </span>","children":null,"spread":false},{"title":"complex.proto <span style='color:#111;'> 947B </span>","children":null,"spread":false},{"title":"plugin.proto <span style='color:#111;'> 8.52KB </span>","children":null,"spread":false},{"title":"20.proto <span style='color:#111;'> 160B </span>","children":null,"spread":false}],"spread":true},{"title":"conformance.proto <span style='color:#111;'> 175B </span>","children":null,"spread":false},{"title":"integers.proto <span style='color:#111;'> 245B </span>","children":null,"spread":false},{"title":"oneof.proto <span style='color:#111;'> 392B </span>","children":null,"spread":false},{"title":"enum_within_message.proto <span style='color:#111;'> 172B </span>","children":null,"spread":false},{"title":"optional_proto2_3.spec.ts <span style='color:#111;'> 156B </span>","children":null,"spread":false},{"title":"importdirective.proto <span style='color:#111;'> 411B </span>","children":null,"spread":false},{"title":"packagedirective.proto <span style='color:#111;'> 100B </span>","children":null,"spread":false},{"title":"serialization.proto <span style='color:#111;'> 70B </span>","children":null,"spread":false},{"title":"rpc_experimental.proto <span style='color:#111;'> 164B </span>","children":null,"spread":false},{"title":"empty.source <span style='color:#111;'> 0B </span>","children":null,"spread":false},{"title":"oneof.spec.ts <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"jstype.proto <span style='color:#111;'> 191B </span>","children":null,"spread":false},{"title":"rpcs.spec.ts <span style='color:#111;'> 3.68KB </span>","children":null,"spread":false},{"title":"default.spec.ts <span style='color:#111;'> 301B </span>","children":null,"spread":false},{"title":"optional_proto2.proto <span style='color:#111;'> 88B </span>","children":null,"spread":false},{"title":"integers.spec.ts <span style='color:#111;'> 585B </span>","children":null,"spread":false},{"title":"optional_proto3.proto <span style='color:#111;'> 89B </span>","children":null,"spread":false},{"title":"conformance.spec.ts <span style='color:#111;'> 289B </span>","children":null,"spread":false},{"title":"map.proto <span style='color:#111;'> 336B </span>","children":null,"spread":false},{"title":"dot.in.filenames.proto <span style='color:#111;'> 89B </span>","children":null,"spread":false},{"title":"default.proto <span style='color:#111;'> 219B </span>","children":null,"spread":false},{"title":"enum_within_message.spec.ts <span style='color:#111;'> 433B </span>","children":null,"spread":false},{"title":"rpcs.proto <span style='color:#111;'> 739B </span>","children":null,"spread":false},{"title":"packagedirective.spec.ts <span style='color:#111;'> 595B </span>","children":null,"spread":false},{"title":"importdirective.spec.ts <span style='color:#111;'> 480B </span>","children":null,"spread":false},{"title":"messagefields.spec.ts <span style='color:#111;'> 1.98KB </span>","children":null,"spread":false},{"title":"imported.proto <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"jstype.spec.ts <span style='color:#111;'> 493B </span>","children":null,"spread":false},{"title":"BUILD.bazel <span style='color:#111;'> 1.16KB </span>","children":null,"spread":false},{"title":"messagefields.proto <span style='color:#111;'> 199B </span>","children":null,"spread":false}],"spread":false},{"title":".vscode","children":[{"title":"launch.json <span style='color:#111;'> 999B </span>","children":null,"spread":false}],"spread":true},{"title":"docs","children":[{"title":"rpc.md <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false}],"spread":true},{"title":"examples","children":[{"title":"tsconfig.json <span style='color:#111;'> 492B </span>","children":null,"spread":false},{"title":"bazel","children":[{"title":"message.ts <span style='color:#111;'> 4.60KB </span>","children":null,"spread":false},{"title":"message.proto <span style='color:#111;'> 174B </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 750B </span>","children":null,"spread":false},{"title":"BUILD.bazel <span style='color:#111;'> 832B </span>","children":null,"spread":false}],"spread":true},{"title":"pure","children":[{"title":".gitignore <span style='color:#111;'> 29B </span>","children":null,"spread":false},{"title":"tsconfig.json <span style='color:#111;'> 6.49KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 473B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"index.ts <span style='color:#111;'> 822B </span>","children":null,"spread":false},{"title":"test.proto <span style='color:#111;'> 159B </span>","children":null,"spread":false}],"spread":false},{"title":"scripts","children":[{"title":"pick_asset.js <span style='color:#111;'> 1.20KB </span>","children":null,"spread":false},{"title":"download_protoc.sh <span style='color:#111;'> 512B </span>","children":null,"spread":false}],"spread":false},{"title":"yarn.lock <span style='color:#111;'> 9.44KB </span>","children":null,"spread":false}],"spread":true},{"title":"package.json <span style='color:#111;'> 743B </span>","children":null,"spread":false},{"title":".bazelrc <span style='color:#111;'> 222B </span>","children":null,"spread":false},{"title":"WORKSPACE <span style='color:#111;'> 2.00KB </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 15.76KB </span>","children":null,"spread":false},{"title":"BUILD.bazel <span style='color:#111;'> 32B </span>","children":null,"spread":false},{"title":"grpc","children":[{"title":"server.ts <span style='color:#111;'> 749B </span>","children":null,"spread":false},{"title":"client.ts <span style='color:#111;'> 560B </span>","children":null,"spread":false},{"title":"type.proto <span style='color:#111;'> 184B </span>","children":null,"spread":false},{"title":"type.ts <span style='color:#111;'> 5.23KB </span>","children":null,"spread":false},{"title":"BUILD.bazel <span style='color:#111;'> 856B </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"LICENSE <span style='color:#111;'> 1.04KB </span>","children":null,"spread":false},{"title":"package.json <span style='color:#111;'> 1.42KB </span>","children":null,"spread":false},{"title":"index.bzl <span style='color:#111;'> 3.22KB </span>","children":null,"spread":false},{"title":".bazelrc <span style='color:#111;'> 337B </span>","children":null,"spread":false},{"title":"src","children":[{"title":"rpc.js <span style='color:#111;'> 42.16KB </span>","children":null,"spread":false},{"title":"descriptor.js <span style='color:#111;'> 64.94KB </span>","children":null,"spread":false},{"title":"compiler","children":[{"title":"descriptor.js <span style='color:#111;'> 113.98KB </span>","children":null,"spread":false},{"title":"plugin.js <span style='color:#111;'> 14.76KB </span>","children":null,"spread":false},{"title":"index.ts <span style='color:#111;'> 80B </span>","children":null,"spread":false}],"spread":false},{"title":"type.js <span style='color:#111;'> 2.46KB </span>","children":null,"spread":false},{"title":"index.js <span style='color:#111;'> 4.09KB </span>","children":null,"spread":false},{"title":"field.js <span style='color:#111;'> 7.28KB </span>","children":null,"spread":false},{"title":"BUILD.bazel <span style='color:#111;'> 1011B </span>","children":null,"spread":false}],"spread":false},{"title":"scripts","children":[{"title":"sync_compiler_protos.js <span style='color:#111;'> 692B </span>","children":null,"spread":false},{"title":"sync_generated_protos.js <span style='color:#111;'> 843B </span>","children":null,"spread":false}],"spread":false},{"title":"WORKSPACE <span style='color:#111;'> 1.23KB </span>","children":null,"spread":false},{"title":"yarn.lock <span style='color:#111;'> 24.24KB </span>","children":null,"spread":false},{"title":"BUILD.bazel <span style='color:#111;'> 384B </span>","children":null,"spread":false}],"spread":false}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明