tables

package
v0.0.0-...-165d932 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: BSD-3-Clause Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Generators = map[string]table.Generator{
	"posts": GetIrisPostsTable,
	"tags":  GetIrisTagsTable,
	"pages": GetIrisPagesTable,
	"menus": GetIrisMenusTable,
}

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:

"users" => http://localhost:8080/admin/info/users "posts" => http://localhost:8080/admin/info/posts "authors" => http://localhost:8080/admin/info/authors

Functions

func GetIrisMenusTable

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

func GetIrisPagesTable

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

func GetIrisPostsTable

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

func GetIrisTagsTable

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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