mirror of
https://github.com/linka-cloud/grpc.git
synced 2025-06-22 09:12:28 +00:00
add metrics, tracing, validation interceptors, add options: WithInterceptors, With{Client,Server}Interceptors
This commit is contained in:
20
interceptors/interceptors.go
Normal file
20
interceptors/interceptors.go
Normal file
@ -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