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