Versions in this module Expand all Collapse all v1 v1.3.2 Sep 6, 2020 Changes in this version + const DefaultConnectionName + const DefaultPrimaryKeyName + func SetServices(srv service.List) + type BaseTable struct + CanAdd bool + Deletable bool + Detail *types.InfoPanel + Editable bool + Exportable bool + Form *types.FormPanel + Info *types.InfoPanel + NewForm *types.FormPanel + OnlyDetail bool + OnlyInfo bool + OnlyNewForm bool + OnlyUpdateForm bool + PrimaryKey PrimaryKey + func (base *BaseTable) GetActualNewForm() *types.FormPanel + func (base *BaseTable) GetCanAdd() bool + func (base *BaseTable) GetDeletable() bool + func (base *BaseTable) GetDetail() *types.InfoPanel + func (base *BaseTable) GetDetailFromInfo() *types.InfoPanel + func (base *BaseTable) GetEditable() bool + func (base *BaseTable) GetExportable() bool + func (base *BaseTable) GetForm() *types.FormPanel + func (base *BaseTable) GetInfo() *types.InfoPanel + func (base *BaseTable) GetNewForm() *types.FormPanel + func (base *BaseTable) GetOnlyDetail() bool + func (base *BaseTable) GetOnlyInfo() bool + func (base *BaseTable) GetOnlyNewForm() bool + func (base *BaseTable) GetOnlyUpdateForm() bool + func (base *BaseTable) GetPaginator(size int, params parameter.Parameters, extraHtml ...template.HTML) types.PaginatorAttribute + func (base *BaseTable) GetPrimaryKey() PrimaryKey + type Columns []string + type Config struct + CanAdd bool + Connection string + Deletable bool + Driver string + Editable bool + Exportable bool + GetDataFun GetDataFun + OnlyDetail bool + OnlyInfo bool + OnlyNewForm bool + OnlyUpdateForm bool + PrimaryKey PrimaryKey + SourceURL string + func DefaultConfig() Config + func DefaultConfigWithDriver(driver string) Config + func DefaultConfigWithDriverAndConnection(driver, conn string) Config + func (config Config) SetCanAdd(canAdd bool) Config + func (config Config) SetConnection(connection string) Config + func (config Config) SetDeletable(deletable bool) Config + func (config Config) SetEditable(editable bool) Config + func (config Config) SetExportable(exportable bool) Config + func (config Config) SetGetDataFun(fun GetDataFun) Config + func (config Config) SetOnlyDetail() Config + func (config Config) SetOnlyInfo() Config + func (config Config) SetOnlyNewForm() Config + func (config Config) SetOnlyUpdateForm() Config + func (config Config) SetPrimaryKeyType(typ string) Config + func (config Config) SetSourceURL(url string) Config + type DefaultTable struct + func (tb *DefaultTable) Copy() Table + func (tb *DefaultTable) DeleteData(id string) error + func (tb *DefaultTable) GetData(params parameter.Parameters) (PanelInfo, error) + func (tb *DefaultTable) GetDataWithId(param parameter.Parameters) (FormInfo, error) + func (tb *DefaultTable) GetDataWithIds(params parameter.Parameters) (PanelInfo, error) + func (tb *DefaultTable) GetNewFormInfo() FormInfo + func (tb *DefaultTable) InsertData(dataList form.Values) error + func (tb *DefaultTable) PreProcessValue(dataList form.Values, typ types.PostType) form.Values + func (tb *DefaultTable) UpdateData(dataList form.Values) error + type FormInfo struct + Description string + FieldList types.FormFields + GroupFieldHeaders types.GroupFieldHeaders + GroupFieldList types.GroupFormFields + Title string + type Generator func(ctx *context.Context) Table + type GeneratorList map[string]Generator + func (g GeneratorList) Add(key string, gen Generator) + func (g GeneratorList) Combine(list GeneratorList) GeneratorList + func (g GeneratorList) CombineAll(gens []GeneratorList) GeneratorList + type GetDataFromURLRes struct + Data []map[string]interface{} + Size int + type GetDataFun func(params parameter.Parameters) ([]map[string]interface{}, int) + type PanelInfo struct + Description string + FilterFormData types.FormFields + InfoList types.InfoList + Paginator types.PaginatorAttribute + Thead types.Thead + Title string + type PrimaryKey struct + Name string + Type db.DatabaseType + type SystemTable struct + func NewSystemTable(conn db.Connection, c *config.Config) *SystemTable + func (s *SystemTable) GetGenerateForm(ctx *context.Context) (generateTool Table) + func (s *SystemTable) GetManagerTable(ctx *context.Context) (managerTable Table) + func (s *SystemTable) GetMenuTable(ctx *context.Context) (menuTable Table) + func (s *SystemTable) GetNormalManagerTable(ctx *context.Context) (managerTable Table) + func (s *SystemTable) GetOpTable(ctx *context.Context) (opTable Table) + func (s *SystemTable) GetPermissionTable(ctx *context.Context) (permissionTable Table) + func (s *SystemTable) GetRolesTable(ctx *context.Context) (roleTable Table) + func (s *SystemTable) GetSiteTable(ctx *context.Context) (siteTable Table) + type Table interface + Copy func() Table + DeleteData func(pk string) error + GetActualNewForm func() *types.FormPanel + GetCanAdd func() bool + GetData func(params parameter.Parameters) (PanelInfo, error) + GetDataWithId func(params parameter.Parameters) (FormInfo, error) + GetDataWithIds func(params parameter.Parameters) (PanelInfo, error) + GetDeletable func() bool + GetDetail func() *types.InfoPanel + GetDetailFromInfo func() *types.InfoPanel + GetEditable func() bool + GetExportable func() bool + GetForm func() *types.FormPanel + GetInfo func() *types.InfoPanel + GetNewForm func() *types.FormPanel + GetNewFormInfo func() FormInfo + GetOnlyDetail func() bool + GetOnlyInfo func() bool + GetOnlyNewForm func() bool + GetOnlyUpdateForm func() bool + GetPrimaryKey func() PrimaryKey + InsertData func(dataList form.Values) error + UpdateData func(dataList form.Values) error + func NewDefaultTable(cfgs ...Config) Table