datamodel

package
v1.0.6 Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2019 License: Apache-2.0 Imports: 15 Imported by: 74

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 GetAllTypesTable added in v1.0.0

func GetAllTypesTable() table.Table

func GetAuthorsTable

func GetAuthorsTable() (authorsTable table.Table)

func GetContent

func GetContent() (types.Panel, error)

func GetPostsTable

func GetPostsTable() (postsTable table.Table)

func GetUserTable

func GetUserTable() (userTable table.Table)

Types

type LoginPage added in v1.0.0

type LoginPage struct {
}

func (*LoginPage) GetAsset added in v1.0.0

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

func (*LoginPage) GetAssetList added in v1.0.0

func (*LoginPage) GetAssetList() []string

func (*LoginPage) GetTemplate added in v1.0.0

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

Jump to

Keyboard shortcuts

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