validate

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2025 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ContextKeyRoleIDsValueKey contextKey = iota
)

Variables

This section is empty.

Functions

func ContextWithAllowedRoleIDs

func ContextWithAllowedRoleIDs(ctx context.Context, rolesIds []string) context.Context

ContextWithAllowedRoleIDs returns a new context which includes the allowed role IDs.

func Default

func Default() *validator.Validate

Default returns the default validator.

func StructCtx

func StructCtx(ctx context.Context, s interface{}) error

StructCtx validates a struct and returns the error.

Types

This section is empty.

Jump to

Keyboard shortcuts

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