Documentation ¶
Index ¶
- Variables
- func GetPeerAddr(ctx context.Context) string
- func NewUnaryClientInterceptor(options ...ClientOption) grpc.UnaryClientInterceptor
- func NewUnaryServerInterceptor(options ...ServerOption) grpc.UnaryServerInterceptor
- type ClientOption
- type MDReaderWriter
- type RequestIgnorerFunc
- type ServerOption
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func GetPeerAddr ¶
func NewUnaryClientInterceptor ¶
func NewUnaryClientInterceptor(options ...ClientOption) grpc.UnaryClientInterceptor
func NewUnaryServerInterceptor ¶
func NewUnaryServerInterceptor(options ...ServerOption) grpc.UnaryServerInterceptor
Types ¶
type ClientOption ¶
type ClientOption func(*clientOptions)
func WithClientTracer ¶
func WithClientTracer(tracer opentracing.Tracer) ClientOption
type MDReaderWriter ¶
func (MDReaderWriter) ForeachKey ¶
func (m MDReaderWriter) ForeachKey(handler func(key, val string) error) error
func (MDReaderWriter) Set ¶
func (m MDReaderWriter) Set(key, val string)
type RequestIgnorerFunc ¶
type RequestIgnorerFunc func(*grpc.UnaryServerInfo) bool
type ServerOption ¶
type ServerOption func(*serverOptions)
func WithServerRequestIgnorer ¶
func WithServerRequestIgnorer(r RequestIgnorerFunc) ServerOption
func WithServerTracer ¶
func WithServerTracer(tracer opentracing.Tracer) ServerOption
Click to show internal directories.
Click to hide internal directories.