Versions in this module Expand all Collapse all v1 v1.13.2 Feb 10, 2021 v1.13.1 Feb 9, 2021 Changes in this version + func ValidateFields(fields []*FieldData) error + func ValidateParams(params map[string]interface{}) error + func ValidateString(value string, constraint ConstraintType, constraintData interface{}) (bool, error) + type Base struct + CreatedAt time.Time + DeletedAt *time.Time + ID uuid.UUID + UpdatedAt time.Time + type ConstraintDetail struct + ConstraintData interface{} + Type ConstraintType + type ConstraintType string + const AlphaNumeric + const AlphaNumericAndHyphen + const Email + const In + const RegEx + const URL + const UUID + type FieldData struct + Constraints []*ConstraintDetail + Name string + Required bool + Type string + Value interface{} + func NewStringFieldData(name string, value interface{}) *FieldData + func NewStringFieldDataWithConstraint(name string, value interface{}, required bool, constraints []*ConstraintDetail) *FieldData + type TenantBase struct + CreatedAt time.Time + DeletedAt *time.Time + ID uuid.UUID + TenantID uuid.UUID + UpdatedAt time.Time