Documentation
¶
Index ¶
- func GetOrInitValidatorRules[V Validator[T], T any]() []validate.FieldRule[T]
- func GetOrInitValidatorRulesFromStore[V Validator[T], T any](store ValidatorStore) []validate.FieldRule[T]
- func GetValidatorRules[V Validator[T], T any]() []validate.FieldRule[T]
- func GetValidatorRulesFromStore[V Validator[T], T any](store ValidatorStore) []validate.FieldRule[T]
- func InitValidatorInStore[V Validator[T], T any](store ValidatorStore, validator V)
- func InitValidatorRules[V Validator[T], T any](validator V)
- func NewConcurrentMapStore() *concurrentMapStore
- type Validator
- type ValidatorStore
- type ValidatorWrapper
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetOrInitValidatorRules ¶
func GetOrInitValidatorRulesFromStore ¶
func GetOrInitValidatorRulesFromStore[V Validator[T], T any](store ValidatorStore) []validate.FieldRule[T]
func GetValidatorRulesFromStore ¶
func GetValidatorRulesFromStore[V Validator[T], T any](store ValidatorStore) []validate.FieldRule[T]
func InitValidatorInStore ¶
func InitValidatorInStore[V Validator[T], T any]( store ValidatorStore, validator V, )
InitValidatorInStore init validator into store
func InitValidatorRules ¶
func NewConcurrentMapStore ¶
func NewConcurrentMapStore() *concurrentMapStore
Types ¶
type ValidatorStore ¶
func GlobalMapStore ¶
func GlobalMapStore() ValidatorStore
func NewDefaultMapStore ¶
func NewDefaultMapStore() ValidatorStore
NewDefaultMapStore return default map store it's not for concurrent write
type ValidatorWrapper ¶
func (*ValidatorWrapper[T]) Rules ¶
func (v *ValidatorWrapper[T]) Rules() []validate.FieldRule[T]
Click to show internal directories.
Click to hide internal directories.