Documentation ¶
Index ¶
- Variables
- func GetAllTypesTable() table.Table
- func GetAuthorsTable(ctx *context.Context) (authorsTable table.Table)
- func GetContent(ctx *context.Context) (types.Panel, error)
- func GetGoadminSuperUsersTable(ctx *context.Context) table.Table
- func GetPostsTable(ctx *context.Context) (postsTable table.Table)
- func GetUserTable(ctx *context.Context) (userTable table.Table)
Constants ¶
This section is empty.
Variables ¶
View Source
var Generators = map[string]table.Generator{ "posts": GetPostsTable, "authors": GetAuthorsTable, }
Generators is a map of table models.
The key of generators is the prefix of table info url. The corresponding value is the Form and TableName data.
http://{{config.Domain}}:{{Port}}/{{config.Prefix}}/info/{{key}}
example:
"posts" => http://localhost:9033/admin/info/posts "authors" => http://localhost:9033/admin/info/authors
Functions ¶
func GetAllTypesTable ¶
GetAllTypesTable return the model of table types.
func GetAuthorsTable ¶
GetAuthorsTable return the model of table author.
func GetContent ¶
GetContent return the content of index page.
func GetPostsTable ¶
GetPostsTable return the model of table posts.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.