From 2cc0748d7ec85aa1abfc635ac33cb12f40b8e3ee Mon Sep 17 00:00:00 2001 From: chai2010 Date: Sun, 1 Jul 2018 18:10:47 +0800 Subject: [PATCH] =?UTF-8?q?ch4:=20=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= =?UTF-8?q?=E5=AF=B9=E5=BA=94=E7=9A=84=E7=9B=AE=E5=BD=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ch4-rpc/ch4-06-pb-option.md | 2 ++ examples/ch4-03-rpc-hack/rpc-auth/main.go | 6 ++++++ examples/ch4-03-rpc-hack/rpc-context/main.go | 5 +++++ examples/ch4-03-rpc-hack/rpc-reverse/main.go | 5 +++++ examples/ch4-04-grpc/auth/dummy.txt | 0 examples/ch4-04-grpc/basic/dummy.txt | 0 examples/ch4-04-grpc/http-handle/dummy.txt | 0 examples/ch4-04-grpc/reflect/dummy.txt | 0 examples/ch4-04-grpc/stream/dummy.txt | 0 examples/ch4-05-grpc-hack/panic-and-log/dummy.txt | 0 examples/ch4-05-grpc-hack/rest-and-swagger/dummy.txt | 0 examples/ch4-05-grpc-hack/validate/dummy.txt | 0 examples/ch4-06-pb/http-router/dummy.txt | 0 examples/ch4-06-pb/pb-option/dummy.txt | 0 examples/ch4-06-pb/pb-web-frameswork/dummy.txt | 0 examples/ch4-06-pb/plugin-framework/dummy.txt | 0 examples/ch4-07-other-rpc/msgpack/dummy.txt | 0 examples/ch4-07-other-rpc/protorpc/dummy.txt | 0 examples/ch4-07-other-rpc/rpcx/dummy.txt | 0 examples/ch4-07-other-rpc/thrift/dummy.txt | 0 20 files changed, 18 insertions(+) create mode 100644 examples/ch4-03-rpc-hack/rpc-auth/main.go create mode 100644 examples/ch4-03-rpc-hack/rpc-context/main.go create mode 100644 examples/ch4-03-rpc-hack/rpc-reverse/main.go create mode 100644 examples/ch4-04-grpc/auth/dummy.txt create mode 100644 examples/ch4-04-grpc/basic/dummy.txt create mode 100644 examples/ch4-04-grpc/http-handle/dummy.txt create mode 100644 examples/ch4-04-grpc/reflect/dummy.txt create mode 100644 examples/ch4-04-grpc/stream/dummy.txt create mode 100644 examples/ch4-05-grpc-hack/panic-and-log/dummy.txt create mode 100644 examples/ch4-05-grpc-hack/rest-and-swagger/dummy.txt create mode 100644 examples/ch4-05-grpc-hack/validate/dummy.txt create mode 100644 examples/ch4-06-pb/http-router/dummy.txt create mode 100644 examples/ch4-06-pb/pb-option/dummy.txt create mode 100644 examples/ch4-06-pb/pb-web-frameswork/dummy.txt create mode 100644 examples/ch4-06-pb/plugin-framework/dummy.txt create mode 100644 examples/ch4-07-other-rpc/msgpack/dummy.txt create mode 100644 examples/ch4-07-other-rpc/protorpc/dummy.txt create mode 100644 examples/ch4-07-other-rpc/rpcx/dummy.txt create mode 100644 examples/ch4-07-other-rpc/thrift/dummy.txt diff --git a/ch4-rpc/ch4-06-pb-option.md b/ch4-rpc/ch4-06-pb-option.md index f3d0839..79b18db 100644 --- a/ch4-rpc/ch4-06-pb-option.md +++ b/ch4-rpc/ch4-06-pb-option.md @@ -6,6 +6,8 @@ TODO 基本的用法,生成http路由,生成sdk +web框架??? + -- 基于pb扩展,打造一个自定义的rpc diff --git a/examples/ch4-03-rpc-hack/rpc-auth/main.go b/examples/ch4-03-rpc-hack/rpc-auth/main.go new file mode 100644 index 0000000..a6f7659 --- /dev/null +++ b/examples/ch4-03-rpc-hack/rpc-auth/main.go @@ -0,0 +1,6 @@ +package main + +func main() { + // todo + // tls +} diff --git a/examples/ch4-03-rpc-hack/rpc-context/main.go b/examples/ch4-03-rpc-hack/rpc-context/main.go new file mode 100644 index 0000000..d8d44f3 --- /dev/null +++ b/examples/ch4-03-rpc-hack/rpc-context/main.go @@ -0,0 +1,5 @@ +package main + +func main() { + // todo +} diff --git a/examples/ch4-03-rpc-hack/rpc-reverse/main.go b/examples/ch4-03-rpc-hack/rpc-reverse/main.go new file mode 100644 index 0000000..d8d44f3 --- /dev/null +++ b/examples/ch4-03-rpc-hack/rpc-reverse/main.go @@ -0,0 +1,5 @@ +package main + +func main() { + // todo +} diff --git a/examples/ch4-04-grpc/auth/dummy.txt b/examples/ch4-04-grpc/auth/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-04-grpc/basic/dummy.txt b/examples/ch4-04-grpc/basic/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-04-grpc/http-handle/dummy.txt b/examples/ch4-04-grpc/http-handle/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-04-grpc/reflect/dummy.txt b/examples/ch4-04-grpc/reflect/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-04-grpc/stream/dummy.txt b/examples/ch4-04-grpc/stream/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-05-grpc-hack/panic-and-log/dummy.txt b/examples/ch4-05-grpc-hack/panic-and-log/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-05-grpc-hack/rest-and-swagger/dummy.txt b/examples/ch4-05-grpc-hack/rest-and-swagger/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-05-grpc-hack/validate/dummy.txt b/examples/ch4-05-grpc-hack/validate/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-06-pb/http-router/dummy.txt b/examples/ch4-06-pb/http-router/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-06-pb/pb-option/dummy.txt b/examples/ch4-06-pb/pb-option/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-06-pb/pb-web-frameswork/dummy.txt b/examples/ch4-06-pb/pb-web-frameswork/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-06-pb/plugin-framework/dummy.txt b/examples/ch4-06-pb/plugin-framework/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-07-other-rpc/msgpack/dummy.txt b/examples/ch4-07-other-rpc/msgpack/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-07-other-rpc/protorpc/dummy.txt b/examples/ch4-07-other-rpc/protorpc/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-07-other-rpc/rpcx/dummy.txt b/examples/ch4-07-other-rpc/rpcx/dummy.txt new file mode 100644 index 0000000..e69de29 diff --git a/examples/ch4-07-other-rpc/thrift/dummy.txt b/examples/ch4-07-other-rpc/thrift/dummy.txt new file mode 100644 index 0000000..e69de29