Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(reg Registry) grpc.StreamServerInterceptor
StreamServerInterceptor returns an interceptor that injects server and method info into the stream context
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(reg Registry) grpc.UnaryServerInterceptor
UnaryServerInterceptor returns an interceptor that injects server and method info into the request context
func WithMethodInfo ¶
func WithMethodInfo(ctx context.Context, info MethodInfo) context.Context
WithMethodInfo injects method info into context
Types ¶
type MethodInfo ¶
type MethodInfo interface { Service() pref.ServiceDescriptor Method() pref.MethodDescriptor }
MethodInfo provides service and method descriptors
func GetMethodInfo ¶
func GetMethodInfo(ctx context.Context) (MethodInfo, bool)
GetMethodInfo extracts method info from context
Click to show internal directories.
Click to hide internal directories.