Documentation ¶
Index ¶
- func Init(env string) error
- func IocAction(act func(*config.Model, *cli.Context) error) func(c *cli.Context)
- type Dao
- func (p *Dao) Get(key string, val interface{}) error
- func (p *Dao) GetSiteInfo(key, lang string) string
- func (p *Dao) GetString(key string) string
- func (p *Dao) Languages() []string
- func (p *Dao) Locale(lang, code, msg string) error
- func (p *Dao) Set(key string, val interface{}, flag bool) error
- func (p *Dao) SetSiteInfo(key, lang string, val interface{}, flag bool) error
- type Locale
- type Notice
- type Setting
- type SiteEngine
- type SiteModel
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Dao ¶
func (*Dao) GetSiteInfo ¶
type SiteEngine ¶
type SiteEngine struct { core.Controller Cfg *config.Model `inject:""` Db *gorm.DB `inject:""` Dao *Dao `inject:""` Logger *logging.Logger `inject:""` Render *render.Render `inject:""` Cache cache.Provider `inject:""` }
func (*SiteEngine) Asserts ¶
func (p *SiteEngine) Asserts() []*core.Template
=========================================================
func (*SiteEngine) Migrate ¶
func (p *SiteEngine) Migrate()
func (*SiteEngine) Mount ¶
func (p *SiteEngine) Mount(rt core.Router)
func (*SiteEngine) Rss ¶
func (p *SiteEngine) Rss() rss.Handler
func (*SiteEngine) Seed ¶
func (p *SiteEngine) Seed() error
func (*SiteEngine) Shell ¶
func (p *SiteEngine) Shell() []cli.Command
func (*SiteEngine) Sitemap ¶
func (p *SiteEngine) Sitemap() sitemap.Handler
Click to show internal directories.
Click to hide internal directories.