Versions in this module Expand all Collapse all v0 v0.1.0 Feb 22, 2026 Changes in this version + func DefaultConfig() *config.Config + func LoadConfig(path string) (*config.Config, error) + func NewResource(model interface{}) *resource.Resource + type AdminUser = models.AdminUser + type AssociationData struct + Fields []resource.Field + Items []map[string]interface{} + Options []map[string]interface{} + Resource *resource.Resource + type AuditLog = models.AuditLog + type Chart struct + Data func(db *gorm.DB) (labels []string, values []float64) + Label string + Type string + type ChartWidget struct + ID string + Label string + Labels []string + Type string + Values []float64 + type Config = config.Config + type Field = resource.Field + type Page struct + Group string + Handler http.HandlerFunc + Name string + type PageData struct + Associations map[string]AssociationData + CSS template.CSS + ChartData []ChartWidget + CurrentResource *resource.Resource + CurrentScope string + Data []map[string]interface{} + Error string + Fields []resource.Field + Filters map[string]string + Flash string + GroupedPages map[string][]*Page + GroupedResources map[string][]*resource.Resource + HasNext bool + HasPrev bool + Item map[string]interface{} + NextPage int + Page int + PerPage int + PrevPage int + RenderedSidebars map[string]template.HTML + Resources map[string]*resource.Resource + Scopes []resource.Scope + SiteTitle string + SortField string + SortOrder string + Stats []Stat + TotalCount int64 + TotalPages int + User *models.AdminUser + type Permission = models.Permission + type Registry struct + Charts []Chart + Config *config.Config + DB *gorm.DB + Pages map[string]*Page + Resources map[string]*resource.Resource + func NewRegistry(db *gorm.DB) *Registry + func (reg *Registry) AddChart(l, t string, p func(db *gorm.DB) ([]string, []float64)) + func (reg *Registry) AddPage(n, g string, h http.HandlerFunc) + func (reg *Registry) Create(resourceName string, data interface{}) error + func (reg *Registry) Delete(resourceName string, id interface{}) error + func (reg *Registry) Get(resourceName string, id interface{}) (interface{}, error) + func (reg *Registry) GetResource(n string) (*resource.Resource, bool) + func (reg *Registry) GetUserFromRequest(r *http.Request) (*models.AdminUser, string) + func (reg *Registry) IsAllowed(role, resource, action string) bool + func (reg *Registry) List(resourceName string) (interface{}, error) + func (reg *Registry) RecordAction(user *models.AdminUser, resName, recordID, action, changes string) + func (reg *Registry) Register(m interface{}) *resource.Resource + func (reg *Registry) RenderCustomPage(w http.ResponseWriter, r *http.Request, title string, content template.HTML) + func (reg *Registry) ResourceNames() []string + func (reg *Registry) ServeHTTP(w http.ResponseWriter, r *http.Request) + func (reg *Registry) SetConfig(c *config.Config) + func (reg *Registry) Update(resourceName string, data interface{}) error + type Resource = resource.Resource + type Scope = resource.Scope + type Session = models.Session + type Stat struct + Label string + Value int64