├── .gitignore ├── .idea ├── .gitignore ├── inspectionProfiles │ └── Project_Default.xml ├── misc.xml ├── modules.xml ├── vcs.xml └── workspace.xml ├── README.md ├── go.mod ├── go.sum ├── grpc-demo.iml ├── img ├── .DS_Store ├── book.png ├── book_douban.png └── wechat.png ├── load_balance_demo ├── Echo.pb.go ├── Echo.proto ├── client │ └── main.go └── server │ └── main.go ├── order ├── OrderInfo.pb.go ├── OrderInfo.proto ├── client │ └── main.go └── server │ └── main.go ├── order_advance_1 ├── OrderInfo.pb.go ├── OrderInfo.proto ├── client │ ├── interceptor.go │ └── main.go └── server │ ├── interceptor.go │ └── main.go ├── order_advance_2 ├── Echo.pb.go ├── Echo.proto ├── OrderInfo.pb.go ├── OrderInfo.proto ├── client │ └── main.go └── server │ ├── echo.go │ ├── greeter.go │ ├── main.go │ └── order.go ├── product ├── ProductInfo.pb.go ├── ProductInfo.proto ├── client │ └── main.go └── server │ └── main.go └── secure-demo ├── ProductInfo.pb.go ├── ProductInfo.proto ├── certs ├── ca.crt ├── client.crt ├── client.key ├── server.crt ├── server.key └── server.pem ├── client └── main.go └── server └── main.go /.gitignore: -------------------------------------------------------------------------------- 1 | ./.idea 2 | ./grpc-demo.iml 3 | -------------------------------------------------------------------------------- /.idea/.gitignore: -------------------------------------------------------------------------------- 1 | # Default ignored files 2 | /shelf/ 3 | /workspace.xml 4 | # Datasource local storage ignored files 5 | /dataSources/ 6 | /dataSources.local.xml 7 | # Editor-based HTTP Client requests 8 | /httpRequests/ 9 | -------------------------------------------------------------------------------- /.idea/inspectionProfiles/Project_Default.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 36 | -------------------------------------------------------------------------------- /.idea/misc.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/modules.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /.idea/vcs.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /.idea/workspace.xml: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 10 | 11 | 12 | 13 | 14 | 19 | 20 | 21 | 22 | 27 | 29 | 30 | 54 | 55 | 56 | 58 | 59 | 60 | 61 | 62 | 63 | 65 | 66 | 67 | 68 | 69 | 70 | 71 | 72 | 73 | 74 | 75 | 76 | 77 | 78 | 79 | 80 | 85 | 92 | 93 | 94 | 95 | 96 | 97 | 98 | 99 | 100 | 101 | 102 | 103 | 104 | 105 | 106 | 107 | 108 | 109 | 110 | 111 | 112 | 113 | 114 | 115 | 116 | 117 | 118 | 119 | 120 | 121 | 1616598967245 122 | 128 | 129 | 1616689449393 130 | 135 | 138 | 139 | 141 | 142 | 151 | 153 | 154 | 155 | 157 | 158 | true 159 | 160 | 161 | 162 | 163 | 164 | 165 | 166 | 167 |