From 3af16d771dcb802e7bd5f4a8acef3514a933eed7 Mon Sep 17 00:00:00 2001 From: longxboy Date: Thu, 17 Jun 2021 10:26:45 +0800 Subject: [PATCH] add comment (#1071) add comment --- README_zh.md | 2 +- transport/transport.go | 8 ++++++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/README_zh.md b/README_zh.md index 53a16d62a..5f1851f03 100644 --- a/README_zh.md +++ b/README_zh.md @@ -102,8 +102,8 @@ app.Run() ## Community * [Wechat Group](https://github.com/go-kratos/kratos/issues/682) * [Discord Group](https://discord.gg/BWzJsUJ) +* Website: [go-kratos.dev](https://go-kratos.dev) * QQ Group: 716486124 - ## Sponsors and Backers ![kratos](docs/images/alipay.png) diff --git a/transport/transport.go b/transport/transport.go index 7d3783112..833523a74 100644 --- a/transport/transport.go +++ b/transport/transport.go @@ -31,9 +31,17 @@ type Header interface { // Transporter is transport context value interface. type Transporter interface { + // grpc + // http Kind() Kind + // Server Transport: grpc://127.0.0.1:9000 + // Client Transport: discovery:///provider-demo Endpoint() string + // Service full method selector generated by protobuf + // example: /helloworld.Greeter/SayHello Operation() string + // http: http.Header + // grpc: metadata.MD Header() Header }