mirror of
https://github.com/linka-cloud/grpc.git
synced 2024-11-14 23:16:25 +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
|
||
|
}
|