Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(srv interface{}, stream grpc.ServerStream, info *grpc.StreamServerInfo, handler grpc.StreamHandler) error
StreamServerInterceptor returns a new stream server interceptor that runs bundled interceptors.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(ctx context.Context, req interface{}, info *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (interface{}, error)
UnaryServerInterceptor returns a new unary server interceptor that runs bundled interceptors.
Types ¶
type ExtraStreamInterceptor ¶
type ExtraStreamInterceptor interface {
StreamInterceptor() grpc.StreamServerInterceptor
}
ExtraStreamInterceptor is an interface for a service which has its own bundled stream interceptors that must be run.
type ExtraUnaryInterceptor ¶
type ExtraUnaryInterceptor interface {
UnaryInterceptor() grpc.UnaryServerInterceptor
}
ExtraUnaryInterceptor is an interface for a service which has its own bundled unary interceptors that must be run.
Click to show internal directories.
Click to hide internal directories.