Documentation
¶
Index ¶
- func Field(opt *FieldOptions) *admin.Meta
- func GetFieldID(v interface{}) string
- func MustPrivate(site *core.Site, key interface{}) (v string)
- func Private(site *core.Site, key interface{}) (v string, ok bool)
- func PrivateConfName(v interface{}) string
- func SetPrivate(site *core.Site, key, value interface{}) (err error)
- func SetPrivateMap(site *core.Site, data map[interface{}]interface{}) (err error)
- type FieldOptions
- type FormattedGetter
- type Getter
- type Key
- type Plugin
- type PrivateName
- type SiteConfig
- type SiteConfigMain
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Field ¶
func Field(opt *FieldOptions) *admin.Meta
func GetFieldID ¶
func GetFieldID(v interface{}) string
func MustPrivate ¶
func PrivateConfName ¶
func PrivateConfName(v interface{}) string
func SetPrivate ¶
func SetPrivateMap ¶
Types ¶
type FieldOptions ¶
type FieldOptions struct { Key interface{} Meta *admin.Meta Getter Getter FormattedGetter FormattedGetter }
func (FieldOptions) New ¶
func (this FieldOptions) New() *admin.Meta
type FormattedGetter ¶
type Plugin ¶
type Plugin struct { plug.EventDispatcher db.DBNames admin_plugin.AdminNames SitesRegisterKey, SitesLoaderUID string // contains filtered or unexported fields }
func (*Plugin) OnRegister ¶
func (*Plugin) RequireOptions ¶
type PrivateName ¶
type PrivateName string
func (PrivateName) Concat ¶
func (this PrivateName) Concat(sub string) PrivateName
func (PrivateName) Sub ¶
func (this PrivateName) Sub(sub string) PrivateName
type SiteConfig ¶
func (SiteConfig) GetID ¶
func (this SiteConfig) GetID() string
func (*SiteConfig) SetID ¶
func (this *SiteConfig) SetID(value string)
type SiteConfigMain ¶
type SiteConfigMain struct { fragment.FragmentedModel Title string }
Click to show internal directories.
Click to hide internal directories.