webTypeAdmin

package
v0.0.0-...-05317bf Latest Latest
Warning

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

Go to latest
Published: Nov 21, 2015 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FkRef

type FkRef interface {
	GetReferenceType() reflect.Type
}

type Manager

type Manager struct {
	InjectHtml template.HTML
	Title      string
	// contains filtered or unexported fields
}

func NewManager

func NewManager(ptr interface{}) (manager *Manager, err error)

func (*Manager) GetElemByPath

func (ctx *Manager) GetElemByPath(p kmgType.Path) (v reflect.Value, t adminType, err error)

func (*Manager) ServeHTTP

func (manager *Manager) ServeHTTP(w http.ResponseWriter, req *http.Request)

type StringEnum

type StringEnum interface {
	GetEnumList() []string //GetEnumList get all list of this type enum ,should only depend on type
}

define a stringEnum like this type Enum1 string

func (enum Enum1)GetEnumList()[]string{
	return []string{
		"abc",
		"bcd",
		"qwe",
	}
}

Jump to

Keyboard shortcuts

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