Versions in this module Expand all Collapse all v0 v0.1.0 Jan 25, 2024 Changes in this version + const CREATE + const DELETE + const DefaultQueryLimit + const EDIT + const FilterOpBetween + const FilterOpEqual + const FilterOpGreater + const FilterOpGreaterOrEqual + const FilterOpIn + const FilterOpIsNot + const FilterOpLess + const FilterOpLessOrEqual + const FilterOpLike + const FilterOpNotEqual + const FilterOpNotIn + const GET + const OrderOpAsc + const OrderOpDesc + const QUERY + type AdminAccessCheck func(c *fiber.Ctx, obj *AdminObject) error + type AdminAction struct + Class string + Handler AdminActionHandler + Icon string + Label string + Name string + Path string + WithoutObject bool + type AdminActionHandler func(c *fiber.Ctx, obj any) (any, error) + type AdminAttribute struct + Choices []AdminSelectOption + Default any + FilterWidget string + Help string + SingleChoice bool + Widget string + type AdminBuildContext func(*fiber.Ctx, map[string]any) map[string]any + type AdminField struct + Attribute *AdminAttribute + CanNull bool + ElemType reflect.Type + FieldName string + Foreign *AdminForeign + IsArray bool + IsAutoID bool + IsPtr bool + Label string + Name string + NotColumn bool + Placeholder string + Primary bool + Required bool + Tag string + Type string + type AdminForeign struct + Field string + FieldName string + ForeignKey string + Path string + type AdminIcon struct + SVG string + Url string + type AdminObject struct + AccessCheck AdminAccessCheck + Actions []AdminAction + Attributes map[string]AdminAttribute + BeforeCreate BeforeCreateFunc + BeforeDelete BeforeDeleteFunc + BeforeRender BeforeRenderFunc + BeforeUpdate BeforeUpdateFunc + Desc string + EditPage string + Editables []string + Fields []AdminField + Filterables []string + GetDB GetDB + Group string + Icon *AdminIcon + Ignores map[string]bool + Invisible bool + ListPage string + MarkDeletedField string + Model any + ModelElem reflect.Type + Name string + Orderables []string + Orders []Order + Path string + Permissions map[string]bool + PluralName string + PrimaryKeyMaping map[string]string + PrimaryKeys []string + Requireds []string + Scripts []AdminScript + Searchables []string + Shows []string + Styles []string + TableName string + UniqueKeys []string + Weight int + type AdminQueryResult struct + Items []map[string]any + Keyword string + Limit int + Objects []any + Pos int + TotalCount int + type AdminScript struct + Onload bool + Src string + type AdminSelectOption struct + Label string + Value any + type AdminValue struct + Label string + Value any + type BeforeCreateFunc func(ctx *fiber.Ctx, vptr any) error + type BeforeDeleteFunc func(ctx *fiber.Ctx, vptr any) error + type BeforeQueryRenderFunc func(ctx *fiber.Ctx, r *QueryResult) (any, error) + type BeforeRenderFunc func(ctx *fiber.Ctx, vptr any) (any, error) + type BeforeUpdateFunc func(ctx *fiber.Ctx, vptr any, vals map[string]any) error + type ContentIcon AdminIcon + func (s *ContentIcon) Scan(input interface{}) error + func (s ContentIcon) Value() (driver.Value, error) + type Filter struct + IsTimeType bool + Name string + Op string + Value any + func (f *Filter) GetQuery() string + type GetDB func(c *fiber.Ctx, isCreate bool) *gorm.DB + type Order struct + Name string + Op string + func (f *Order) GetQuery() string + type PrepareQuery func(db *gorm.DB, c *fiber.Ctx) (*gorm.DB, *QueryForm, error) + type QueryForm struct + Filters []Filter + ForeignMode bool + Keyword string + Limit int + Orders []Order + Pos int + SearchFields []string + ViewFields []string + type QueryResult struct + Items []any + Keyword string + Limit int + Pos int + TotalCount int + type QueryView struct + Desc string + Method string + Path string + Prepare PrepareQuery + type UploadResult struct + ContentType string + Dimensions string + Ext string + External bool + Name string + Path string + PublicUrl string + Size int64 + StorePath string + Thumbnail string + type WebObject struct + AllowMethods int + AuthRequired bool + BeforeCreate BeforeCreateFunc + BeforeDelete BeforeDeleteFunc + BeforeQueryRender BeforeQueryRenderFunc + BeforeRender BeforeRenderFunc + BeforeUpdate BeforeUpdateFunc + Desc string + Editables []string + Filterables []string + GetDB GetDB + Group string + JsonToFields map[string]string + JsonToKinds map[string]reflect.Kind + Model any + ModelElem reflect.Type + Name string + Orderables []string + PrimaryKeys []WebObjectPrimaryField + Searchables []string + TableName string + UniqueKeys []WebObjectPrimaryField + Views []QueryView + type WebObjectPrimaryField struct + IsPrimary bool + JSONName string + Kind reflect.Kind + Name string