validations

package module
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: Apache-2.0 Imports: 2 Imported by: 3

README

README

This README would normally document whatever steps are necessary to get your application up and running.

What is this repository for?
How do I get set up?
  • Summary of set up
  • Configuration
  • Dependencies
  • Database configuration
  • How to run tests
  • Deployment instructions
Contribution guidelines
  • Writing tests
  • Code review
  • Other guidelines
Who do I talk to?
  • Repo owner or admin
  • Other community or team contact

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder interface {
	AddCustomValidations(...CustomValidation) Builder
	Build() (Validations, error)
}

type CacheValidator

type CacheValidator struct {
	Id        string
	SortOrder int
	Enabled   bool
}

type CustomValidation

type CustomValidation interface {
	GetValidationTag() string
	GetValidationFunction() interface{}
}

type Validations

type Validations interface {
	Validate(req interface{}) ServiceReply
}

type Validator

type Validator interface {
	Validate() ServiceReply
	GetId() string
	GetName() string
	GetIsEnabledByDefault() bool
}

type ValidatorCont

type ValidatorCont struct {
	Validators []Validator
}

func NewValidatorCont

func NewValidatorCont() ValidatorCont

type ValidatorRunner

type ValidatorRunner interface {
	Validate(c context.Context, validators ValidatorCont) ServiceReply
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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