随笔 - 934, 文章 - 0, 评论 - 247, 阅读 - 344万

导航

< 2025年2月 >
26 27 28 29 30 31 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 1
2 3 4 5 6 7 8

随笔分类 -  protobuf

摘要:编译 protoc-gen-grpc-java插件 的文档在: https://github.com/grpc/grpc-java/tree/master/compiler 编译的步骤: Change to the compiler directory: cdGRPC_JAVA_ROOT/compiler To compile the plugin: $ ../grad... 阅读全文

posted @ 2016-05-03 14:45 蝈蝈俊 阅读(19387) 评论(2) 推荐(0) 编辑

摘要:安装 protoc (The protocol compiler)是由C++写的,支持的 C++、Java、Python、Objective-C、C#、JavaNano、JavaScript、Ruby、PHP 的实现都在 https://github.com/google/protobuf 这个项目中, 例外的是 Go 的实现是在 https://github.com/golang/protob... 阅读全文

posted @ 2016-04-27 16:11 蝈蝈俊 阅读(2660) 评论(0) 推荐(0) 编辑

摘要:protoc 命令的获得 源码在 https://github.com/google/protobuf , 如果不想自己编译获得最新版本,则可以下载官方编译好的各个平台的,下载地址:https://github.com/google/protobuf/releases ,注意不是带语言后缀的文件,那是源码,如下图: 下载后的解压缩包含的内容如下(以mac下为例) 我们通过 which... 阅读全文

posted @ 2016-04-26 16:22 蝈蝈俊 阅读(115219) 评论(1) 推荐(0) 编辑

摘要:由于 Protocol Buffers 3 的正式版还没有发布,在官网(https://developers.google.com/protocol-buffers/docs/downloads)目前只能下载到 2.6.1 的版本。 要下载 PB3 ,需要在 https://github.com/google/protobuf 的 release 中下载(https://github.com/g... 阅读全文

posted @ 2016-04-13 17:00 蝈蝈俊 阅读(886) 评论(0) 推荐(0) 编辑

摘要:gRPC是一个高性能、通用的开源RPC框架,其由Google主要面向移动应用开发并基于HTTP/2协议标准而设计,基于ProtoBuf(Protocol Buffers)序列化协议开发,且支持众多开发语言。 下面我们就从 HTTP2、ProtoBuf 3、 Nginx、gRPC 的角度看他们的 RoadMAP。 HTTP2 2015年5月HTTP2协议正式版发布: RFC7540、RFC75... 阅读全文

posted @ 2015-07-19 21:28 蝈蝈俊 阅读(1088) 评论(0) 推荐(0) 编辑

摘要:定义 Message 类型, 例子如下:syntax = "proto3";message SearchRequest { string query = 1; int32 page_number = 2; // Which page number do we want? int32 ... 阅读全文

posted @ 2015-06-10 13:52 蝈蝈俊 阅读(3091) 评论(0) 推荐(0) 编辑

摘要:本篇文章主要解决mac下安装ProtoBuffer,编译go版本gRPC用的.proto文件 安装 protoc 注意,gRPC 需要用到 proto3, 而目前 Release 的版本是 2.6.1, 所以我们需要去下载源码并编译。 https://developers.google.com/pr 阅读全文

posted @ 2015-06-09 17:33 蝈蝈俊 阅读(3944) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示