mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-29 06:16:24 +00:00
21 lines
430 B
Go
21 lines
430 B
Go
|
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
|
||
|
}
|