go_validate

package module
v0.0.7 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2023 License: MIT Imports: 3 Imported by: 2

README

go_validate

valida objetos del paquete go_model con inputs paquete go_ui_form

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Validate

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

func AddSchemeTableModel added in v0.0.4

func AddSchemeTableModel(tables ...*model.Table) *Validate

func (*Validate) ColumnsMap

func (v *Validate) ColumnsMap(table_name string) (out map[string]model.Field)

func (*Validate) GetAllTableMapsModels

func (v *Validate) GetAllTableMapsModels() map[string]map[string]model.Field

func (*Validate) GetAllTableModels

func (v *Validate) GetAllTableModels() (tables []*model.Table)

func (*Validate) GetFieldLegendByName

func (v *Validate) GetFieldLegendByName(o *model.Object, field_name string) (out_legend string)

ej: in name out Nombre

func (*Validate) GetFieldsTable

func (v *Validate) GetFieldsTable(o *model.Object) []model.Field

func (*Validate) GetMapModel

func (v *Validate) GetMapModel(o *model.Object) (out map[string]model.Field)

func (*Validate) GetModelBy

func (v *Validate) GetModelBy(table_name string) *model.Table

func (*Validate) TableModelByObject

func (v *Validate) TableModelByObject(o *model.Object) *model.Table

func (*Validate) ValidateAll

func (v *Validate) ValidateAll(table_name string, table_data []map[string]string, validate_all_fields bool) (msg string, ok bool, right []model.Object)

func (*Validate) ValidateThis

func (v *Validate) ValidateThis(o *model.Object, validate_all_fields bool) (message string, ok bool)

validar objeto nuevo con o sin tablas adjuntas

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL