Documentation ¶
Index ¶
- Constants
- Variables
- func EAdmin(adminKey string) string
- func EDone(adminKey string) string
- func EFuncMap(adminKey string) string
- func EInitResources(adminName string) string
- func ERoute(adminName string) string
- func Events(args ...interface{}) (d *events)
- type AdminEvent
- type AdminFuncMapEvent
- type AdminGetter
- type AdminNames
- type AdminRouterEvent
- type Admins
- func (adms *Admins) Each(cb func(adminName string, Admin *admin.Admin) (err error)) (err error)
- func (a *Admins) GetDefault() *admin.Admin
- func (a *Admins) Names() (n []string)
- func (a *Admins) On(ef func(name string) string, dis plug.EventDispatcherInterface, cb interface{}) (err error)
- func (a *Admins) OnAdmin(dis plug.EventDispatcherInterface, cb func(e *AdminEvent)) (err error)
- func (a *Admins) OnAdminE(dis plug.EventDispatcherInterface, cb func(e *AdminEvent) error) (err error)
- func (a *Admins) OnFuncMap(dis plug.EventDispatcherInterface, cb func(e *AdminFuncMapEvent)) (err error)
- func (a *Admins) OnFuncMapE(dis plug.EventDispatcherInterface, cb func(e *AdminFuncMapEvent) error) (err error)
- func (a *Admins) OnInitResources(dis plug.EventDispatcherInterface, cb func(e *AdminEvent)) (err error)
- func (a *Admins) OnInitResourcesE(dis plug.EventDispatcherInterface, cb func(e *AdminEvent) error) (err error)
- func (a *Admins) OnRoute(dis plug.EventDispatcherInterface, cb func(e *AdminRouterEvent)) (err error)
- func (a *Admins) OnRouteE(dis plug.EventDispatcherInterface, cb func(e *AdminRouterEvent) error) (err error)
- func (a *Admins) Set(name string, Admin *admin.Admin)
- func (a *Admins) SetDefault(Admin *admin.Admin)
- func (admins *Admins) Trigger(d plug.PluginEventDispatcherInterface) error
- type Config
- type FragmentConfig
- type Plugin
- func (p *Plugin) AssetsRootPath() (pth string)
- func (p *Plugin) Init(options *plug.Options)
- func (p *Plugin) NameSpace() string
- func (p *Plugin) OnRegister(options *plug.Options)
- func (p *Plugin) ProvideOptions() []string
- func (p *Plugin) ProvidesOptions(options *plug.Options)
- func (p *Plugin) RequireOptions() []string
- type SubConfig
Constants ¶
View Source
const DEFAULT_ADMIN = "default"
Variables ¶
View Source
var ( E_ADMIN = PKG + ".admin" E_ADMIN_DONE = E_ADMIN + ".done" E_ADMIN_FUNC_MAP = E_ADMIN + ".funcMap" E_ADMIN_ROUTE = E_ADMIN + ".route" E_ADMIN_INIT_RESOURCES = E_ADMIN + ".initResources" )
View Source
var (
PKG = path_helpers.GetCalledDir()
)
Functions ¶
func EInitResources ¶
Types ¶
type AdminEvent ¶
type AdminEvent struct { plug.PluginEventInterface Admin *admin.Admin AdminName string PluginEvent plug.PluginEventInterface }
type AdminFuncMapEvent ¶
type AdminFuncMapEvent struct {
*AdminEvent
}
func (*AdminFuncMapEvent) Register ¶
func (afm *AdminFuncMapEvent) Register(name string, value interface{})
type AdminGetter ¶
type AdminGetter struct {
// contains filtered or unexported fields
}
func (*AdminGetter) GetInitialized ¶
func (this *AdminGetter) GetInitialized(name string) (Admin *admin.Admin)
func (*AdminGetter) Initialize ¶
func (this *AdminGetter) Initialize()
type AdminNames ¶
func (*AdminNames) EachOrDefault ¶
func (dn *AdminNames) EachOrDefault(cb func(adminName string))
func (*AdminNames) EachOrDefaultE ¶
func (dn *AdminNames) EachOrDefaultE(cb func(adminName string) error) (err error)
func (*AdminNames) GetNames ¶
func (a *AdminNames) GetNames() []string
type AdminRouterEvent ¶
type AdminRouterEvent struct { *AdminEvent // contains filtered or unexported fields }
func (*AdminRouterEvent) Router ¶
func (are *AdminRouterEvent) Router() xroute.Router
type Admins ¶
func (*Admins) GetDefault ¶
func (*Admins) OnAdmin ¶
func (a *Admins) OnAdmin(dis plug.EventDispatcherInterface, cb func(e *AdminEvent)) (err error)
func (*Admins) OnAdminE ¶
func (a *Admins) OnAdminE(dis plug.EventDispatcherInterface, cb func(e *AdminEvent) error) (err error)
func (*Admins) OnFuncMap ¶
func (a *Admins) OnFuncMap(dis plug.EventDispatcherInterface, cb func(e *AdminFuncMapEvent)) (err error)
func (*Admins) OnFuncMapE ¶
func (a *Admins) OnFuncMapE(dis plug.EventDispatcherInterface, cb func(e *AdminFuncMapEvent) error) (err error)
func (*Admins) OnInitResources ¶
func (a *Admins) OnInitResources(dis plug.EventDispatcherInterface, cb func(e *AdminEvent)) (err error)
func (*Admins) OnInitResourcesE ¶
func (a *Admins) OnInitResourcesE(dis plug.EventDispatcherInterface, cb func(e *AdminEvent) error) (err error)
func (*Admins) OnRoute ¶
func (a *Admins) OnRoute(dis plug.EventDispatcherInterface, cb func(e *AdminRouterEvent)) (err error)
func (*Admins) OnRouteE ¶
func (a *Admins) OnRouteE(dis plug.EventDispatcherInterface, cb func(e *AdminRouterEvent) error) (err error)
func (*Admins) SetDefault ¶
type FragmentConfig ¶
type FragmentConfig = admin.FragmentConfig
type Plugin ¶
type Plugin struct { plug.EventDispatcher db.DBNames AdminsKey, AdminGetterKey string SystemDBDialectKey string // contains filtered or unexported fields }
func (*Plugin) AssetsRootPath ¶
func (*Plugin) OnRegister ¶
func (*Plugin) ProvideOptions ¶
func (*Plugin) ProvidesOptions ¶
func (*Plugin) RequireOptions ¶
Click to show internal directories.
Click to hide internal directories.