datamodel

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 8 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 GetAll_typesTable added in v0.3.1

func GetAll_typesTable() table.Table

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