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 NewLocationCategoryValidator ¶
func NewLocationCategoryValidator(p LocationCategoryValidatorParams) *LocationCategoryValidator
func (*LocationCategoryValidator) Validate ¶
func (v *LocationCategoryValidator) Validate( ctx context.Context, valCtx *validator.ValidationContext, lc *location.LocationCategory, ) *errors.MultiError
func (*LocationCategoryValidator) ValidateUniqueness ¶
func (v *LocationCategoryValidator) ValidateUniqueness(ctx context.Context, valCtx *validator.ValidationContext, lc *location.LocationCategory, multiErr *errors.MultiError) error
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 (v *Validator) Validate( ctx context.Context, valCtx *validator.ValidationContext, l *location.Location, ) *errors.MultiError
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 }
Click to show internal directories.
Click to hide internal directories.