chainserverinterceptors.go 359 B

1234567891011
  1. package internal
  2. import "google.golang.org/grpc"
  3. func WithStreamServerInterceptors(interceptors ...grpc.StreamServerInterceptor) grpc.ServerOption {
  4. return grpc.ChainStreamInterceptor(interceptors...)
  5. }
  6. func WithUnaryServerInterceptors(interceptors ...grpc.UnaryServerInterceptor) grpc.ServerOption {
  7. return grpc.ChainUnaryInterceptor(interceptors...)
  8. }