validator

package
v9.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package validator integrates go-playground/validator with Echo and normalizes validation errors into a consistent API payload shape.

The package registers project-specific tags (for example RADIUS status and port constraints) and is intended for request payload validation in admin API handlers.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomValidator

type CustomValidator struct {
	// contains filtered or unexported fields
}

CustomValidator is a custom Echo validator

func NewValidator

func NewValidator() *CustomValidator

NewValidator creates a validator instance

func (*CustomValidator) Validate

func (cv *CustomValidator) Validate(i interface{}) error

Validate implements the echo.Validator interface

Jump to

Keyboard shortcuts

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