Documentation
¶
Overview ¶
Package validation builds the protovalidate validator and the gRPC interceptor that enforces the buf.validate rules declared in the .proto files. A request that violates its rules is rejected with INVALID_ARGUMENT before reaching the handler, so handlers don't validate request fields themselves.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewUnaryInterceptor ¶
func NewUnaryInterceptor() (grpc.UnaryServerInterceptor, error)
NewUnaryInterceptor returns a unary interceptor that validates every incoming request message against its buf.validate rules.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.