chainserverinterceptors.go 363 B

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