add comment (#1071)

add comment
pull/1072/head
longxboy 3 years ago committed by GitHub
parent 16b1da04e0
commit 3af16d771d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      README_zh.md
  2. 8
      transport/transport.go

@ -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)

@ -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
}

Loading…
Cancel
Save