locationvalidator

package
v0.0.0-...-20e6d49 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2025 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type LocationCategoryValidator

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

func (*LocationCategoryValidator) Validate

func (*LocationCategoryValidator) ValidateUniqueness

type LocationCategoryValidatorParams

type LocationCategoryValidatorParams struct {
	fx.In

	DB db.Connection
}

type Validator

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

func NewValidator

func NewValidator(p ValidatorParams) *Validator

func (*Validator) Validate

func (*Validator) ValidateUniqueness

func (v *Validator) ValidateUniqueness(ctx context.Context, valCtx *validator.ValidationContext, l *location.Location, multiErr *errors.MultiError) error

type ValidatorParams

type ValidatorParams struct {
	fx.In

	DB db.Connection
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳