validate

package
v0.9.12 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2023 License: Apache-2.0 Imports: 7 Imported by: 320

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateAddress

func ValidateAddress(s string) error

func ValidateEmail

func ValidateEmail(s string) error

func ValidateHostname

func ValidateHostname(s string) error

func ValidatePEM added in v0.4.11

func ValidatePEM(s string) error

func ValidateUUID

func ValidateUUID(s string) error

Types

type CustomValidator

type CustomValidator interface {
	GotenCustomValidate() error
}

type ValidationError

type ValidationError interface {
	error

	ProtoMessageName() string
	FieldName() string
	Value() interface{}
	ErrorMessage() string
	Cause() error
}

func NewValidationError

func NewValidationError(
	protoMessageName string, fieldName string,
	value interface{}, errorMessage string,
	cause error,
) ValidationError

type Validator

type Validator interface {
	GotenValidate() error
}

Jump to

Keyboard shortcuts

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