api

package
v0.0.85 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 11 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