Documentation ¶
Index ¶
- func ClientInterceptor(opts ...Option) (grpc.UnaryClientInterceptor, grpc.StreamClientInterceptor)
- func ServerInterceptor(opts ...Option) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
- func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
- func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
- func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
- func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
- type MetaDataCarrier
- type Option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ClientInterceptor ¶
func ClientInterceptor(opts ...Option) (grpc.UnaryClientInterceptor, grpc.StreamClientInterceptor)
func ServerInterceptor ¶
func ServerInterceptor(opts ...Option) (grpc.UnaryServerInterceptor, grpc.StreamServerInterceptor)
func StreamClientInterceptor ¶
func StreamClientInterceptor(opts ...Option) grpc.StreamClientInterceptor
func StreamServerInterceptor ¶
func StreamServerInterceptor(opts ...Option) grpc.StreamServerInterceptor
func UnaryClientInterceptor ¶
func UnaryClientInterceptor(opts ...Option) grpc.UnaryClientInterceptor
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(opts ...Option) grpc.UnaryServerInterceptor
Types ¶
type MetaDataCarrier ¶
MetaDataCarrier adapts metadata.MD to satisfy the TextMapCarrier interface.
func (MetaDataCarrier) Get ¶
func (mc MetaDataCarrier) Get(key string) string
Get returns the value associated with the passed key.
func (MetaDataCarrier) Keys ¶
func (mc MetaDataCarrier) Keys() []string
Keys lists the keys stored in this carrier.
func (MetaDataCarrier) Set ¶
func (mc MetaDataCarrier) Set(key string, value string)
Set stores the key-value pair.
type Option ¶
type Option func(o *options)
func WithPropagator ¶
func WithPropagator(propagator propagation.TextMapPropagator) Option
func WithTracer ¶
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
example
|
|
greeter_client
Package main implements a client for Greeter service.
|
Package main implements a client for Greeter service. |
greeter_server
Package main implements a server for Greeter service.
|
Package main implements a server for Greeter service. |
Click to show internal directories.
Click to hide internal directories.