Documentation
¶
Overview ¶
Package handwrittenvalidation defines middleware that runs custom-made validations on incoming requests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StreamServerInterceptor ¶
func StreamServerInterceptor(srv any, stream grpc.ServerStream, _ *grpc.StreamServerInfo, handler grpc.StreamHandler) error
StreamServerInterceptor returns a new stream server interceptor that runs the handwritten validation on the incoming request messages, if any.
func UnaryServerInterceptor ¶
func UnaryServerInterceptor(ctx context.Context, req any, _ *grpc.UnaryServerInfo, handler grpc.UnaryHandler) (any, error)
UnaryServerInterceptor returns a new unary server interceptor that runs the handwritten validation on the incoming request, if any.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.