validate

package
v1.11.11 Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Operation must match operations/{operationId} format, where the operationId is a uuid
	OperationRegex = `^operations/[a-z0-9-]{36}$`
)

Variables

This section is empty.

Functions

func Argument

func Argument(name string, value string, regex string) error

Argument validates an argument and returns a grpc error if not valid.

func Required

func Required(name string, message proto.Message) error

Required validate an argument to be not nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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