mirror of
https://github.com/linka-cloud/grpc.git
synced 2026-06-09 21:45:47 +00:00
add metrics, tracing, validation interceptors, add options: WithInterceptors, With{Client,Server}Interceptors
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
package interceptors
|
||||
|
||||
import (
|
||||
"google.golang.org/grpc"
|
||||
)
|
||||
|
||||
type ServerInterceptors interface {
|
||||
UnaryServerInterceptor() grpc.UnaryServerInterceptor
|
||||
StreamServerInterceptor() grpc.StreamServerInterceptor
|
||||
}
|
||||
|
||||
type ClientInterceptors interface {
|
||||
UnaryClientInterceptor() grpc.UnaryClientInterceptor
|
||||
StreamClientInterceptor() grpc.StreamClientInterceptor
|
||||
}
|
||||
|
||||
type Interceptors interface {
|
||||
ServerInterceptors
|
||||
ClientInterceptors
|
||||
}
|
||||
Reference in New Issue
Block a user