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

api

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Overview

Package api package api provides a gRPC interceptor that validates incoming requests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewValidator

func NewValidator() (protovalidate.Validator, error)

NewValidator creates a new validator.

func ProtoValidationInterceptor

func ProtoValidationInterceptor(validator protovalidate.Validator) grpc.UnaryServerInterceptor

ProtoValidationInterceptor is a gRPC interceptor that validates incoming requests.

Types

This section is empty.

Jump to

Keyboard shortcuts

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