天天看點

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 案例收集

繼續閱讀