Help us shape the future of Go! Take the 2026 Go Developer Survey

validate

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FieldViolations

FieldViolations reports the violations protovalidate collected as the detail AIP-193 asks an InvalidArgument to carry.

func Masked

func Masked(
	validator protovalidate.Validator,
	msg proto.Message,
	mask fieldmask.Mask,
	field string,
) error

Masked runs the rules the resource declares against the fields the mask selects, which an Update handler owns because IGNORE_ALWAYS on the resource stops the interceptor. Violations are reported under the request field the resource nests in, so the path matches what the client sent.

func Module

func Module() app.Module

Module provides the protovalidate.Validator the interceptor and every handler share.

func Unary

Unary returns the interceptor that runs the protovalidate rules a request message declares, before the handler sees it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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