datamodel

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generators = map[string]table.Generator{
	"posts":   GetPostsTable,
	"authors": GetAuthorsTable,
}

The key of Generators is the prefix of table info url. The corresponding value is the Form and Table 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 GetAuthorsTable

func GetAuthorsTable() (authorsTable table.Table)

func GetContent

func GetContent() types.Panel

func GetPostsTable

func GetPostsTable() (postsTable table.Table)

func GetUserTable

func GetUserTable() (userTable table.Table)

Types

type LoginPage added in v0.0.5

type LoginPage struct {
}

func (*LoginPage) GetAsset added in v0.0.5

func (*LoginPage) GetAsset(string) ([]byte, error)

func (*LoginPage) GetAssetList added in v0.0.5

func (*LoginPage) GetAssetList() []string

func (*LoginPage) GetTemplate added in v0.0.5

func (*LoginPage) GetTemplate() (*template.Template, string)

Jump to

Keyboard shortcuts

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