Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Queue contract.Queue
Queue holds the registered queue interface to be monitored by the admin panel.
Functions ¶
func Mount ¶
Mount registers all admin panel routes onto the provided mux. db is required for dynamic CRUD queries. prefix is the URL prefix (e.g. "/admin").
Types ¶
type AdminEntry ¶
type AdminEntry struct {
ModelType reflect.Type
TableName string
Columns []ColumnMeta
Label string // Human-readable plural name, e.g. "Users"
}
AdminEntry describes a model registered with the admin panel.
func Find ¶
func Find(name string) (*AdminEntry, bool)
Find retrieves an admin entry by its lowercase model name.
type ColumnMeta ¶
type ColumnMeta struct {
Name string // db tag / column name
GoField string // struct field name
Type string // "string", "int", "bool", etc.
}
ColumnMeta describes a single column/field for admin display.
Click to show internal directories.
Click to hide internal directories.