天天看点

Protobuf 介绍与实战 图文专栏 入口

已发表的技术专栏(订阅即可观看所有专栏)

0  grpc-go、protobuf、multus-cni 技术专栏 总入口

1  grpc-go 源码剖析与实战  文章目录

2  Protobuf介绍与实战 图文专栏  文章目录

3  multus-cni   文章目录(k8s多网络实现方案)

4  grpc、oauth2、openssl、双向认证、单向认证等专栏文章目录

本篇文章是protobuf介绍与实战 图文专栏的目录文章;

可以通过下面的题目,进入到相关文章里。

点击题目,打开Protobuf世界
  • 黑色 字体,表示 未发表。
  • 蓝色 字体,表示 已发表,可点击
第1章:Protobuf 安装 介绍

  1  Mac环境下安装Protobuf(两种方式安装)  (免费看)

  2  Window10下安装Protobuf

  3  protoc如何支持go语言呢?(安装protoc-gen-go插件)

  4  如何根据proto文件,生成grpc类型的API代码呢?(安装protoc-gen-go-grpc插件)

第2章:Protobuf HelloWorld 介绍

  1  Protobuf版本的helloworld?用protobuf来定义数据结构,作为前后端交互的数据形式?  (免费看)

  2  Protobuf、Json作为数据存储场景介绍(将Protobuf对象存储成文件后,为什么有些内容还是能看懂呢?)

第3章:Protobuf 常用命令 介绍

  1  protoc --go_out命令介绍

  2  protoc -I,–proto_path,–go_out ,go_package命令介绍(导入引用、依赖的proto文件)

  3  Protobuf 将消息编译成不同语言版本的类库

  4  Protobuf 定义包名java_package、go_package(如, 定义Java、go里的包名)

第4章:Protobuf 基础 介绍

  1  Protobuf 特点、使用场景、版本 以及protoc, protoc-gen-go, protoc-gen-go-grpc插件之间的关系介绍

  2  Protobuf 相关知识地址收集

  3  Protobuf 消息定义 简单介绍

  4  Protobuf 中限定修饰符(标注)介绍—required\optional\repeated singular

  5  Protobuf 字段类型?数据类型说明

  6  Protobuf 标识号说明

  7  Protobuf 注释说明

  8  Protobuf enum枚举类型说明(或go语言里如何实现枚举?)  (免费看)

  9  Protobuf 消息嵌套(如何在消息里再创建一个消息呢)

  10  Protobuf import引入其他类型、导入(引入)其他文件里的类型?

  11  Protobuf repeated数组类型介绍(如何生成一维数组、切片,二维数组)

  12  Protobuf Map类型介绍(字典类型介绍)

  13  Protobuf Oneof 一个消息里仅允许一个字段生效

  14  Protobuf extensions扩展字段使用?(不更改原有proto文件的基础上,添加新的字段; 继承 效果)

  15  Protobuf Any 同一属性可以存储不同类型的数据?Java object, go语言里interface{}

  16  Protobuf rpc 定义服务、定义方法

  17  Protobuf rpc 如何定义无返回值 无参数方法

  18  Protobuf 类名、属性大小写是否有影响?

  19  Protobuf 使用建议说明(性能优化措施)

  20  Protobuf中google/protbuf/any.proto, api.proto, descriptor.proto,empty.proto,type.proto,timestamp.proto,wrappers.proto,duration.proto?这些proto文件在哪里啊

  21  Protobuf中 google/api/http.proto、annotations.proto或google/rpc/code.proto?这些文件在哪里?(免费看)

  22  protoc2 与 protoc3 区别

第5章:Protobuf option 介绍

  1  Protobuf option 是做什么的?官网地址、分类

  2  Protobuf FileOptions 文件级别 选项介绍  (免费看)

  3  Protobuf MethodOptions 方法 选项介绍

  4  Protobuf FieldOptions 字段级别 选项介绍

  5  Protobuf OneofOptions 选项 介绍

  6  Protobuf EnumOptions 枚举 选项介绍

  7  Protobuf EnumValueOptions 枚举值 选项介绍

  8  Protobuf MessageOptions 消息 选项介绍

  9  Protobuf ServiceOptions 服务 选项介绍

第6章:Protobuf 插件案例介绍

  1  Protobuf 插件开发方案、插件原理介绍

  2  开发一个protobuf插件,至少需要了解哪些?

  3  protoc-gen-go-errors、protoc-gen-go-https、protoc-gen-go-test插件案例说明

  4  protoc-gen-go-errors 插件介绍(proto样例介绍,源码介绍)

  5  protoc-gen-go-https 插件介绍(proto样例介绍,源码介绍)  (免费看)

  6  protoc-gen-go-test 插件介绍(proto样例介绍,源码介绍)  (免费看)

第7章:Protobuf 编码原理 介绍

  1  Protobuf 编码解决的是什么问题?以及Protobuf的编码结构介绍?

  2  Varint编码是用来做什么的?什么场景下使用Varint编码?特点?

  3  Varint 正数编码过程、负数编码过程、解码过程介绍

  4  在proto文件中,数据类型为int32,int64,uint32,uint64,sint32,sint64,bool,enum时,对变量值采用何种方式编码?(Varint)

  5  在proto文件中,数据类型为string,bytes,embedded messages,packed repeated fields时,变量值采用何种方式编码(Length-delimited)  (免费看)

  6  在proto文件中,数据类型为fixed64,sfixed64,double时,变量值采用何种方式编码(64-bit)

第8章:Protobuf 案例收集 介绍
Protobuf 结合 Java 案例收集

  1  ProtoBuf及整合到SpringBoot

  2  SpringBoot使用protobuf格式的接口

Protobuf 结合 go、grpc 案例收集

继续阅读