datamodel

package
v0.1.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 17, 2021 License: Apache-2.0 Imports: 20 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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

func GetAllTypesTable() table.Table

GetAllTypesTable return the model of table types.

func GetAuthorsTable

func GetAuthorsTable(ctx *context.Context) (authorsTable table.Table)

GetAuthorsTable return the model of table author.

func GetContent

func GetContent(ctx *context.Context) (types.Panel, error)

GetContent return the content of index page.

func GetGoadminSuperUsersTable

func GetGoadminSuperUsersTable(ctx *context.Context) table.Table

func GetPostsTable

func GetPostsTable(ctx *context.Context) (postsTable table.Table)

GetPostsTable return the model of table posts.

func GetUserTable

func GetUserTable(ctx *context.Context) (userTable table.Table)

GetUserTable return the model of table user.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL