validation

package
v1.18.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 24, 2026 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL