Documentation ¶
Index ¶
- func CreateCertificate(ca bool, subject pkix.Name, years int) ([]byte, []byte, error)
- func WritePemFile(file, _type string, buf []byte, mode os.FileMode) error
- type LeaveWord
- type Link
- type Notice
- type Page
- type Plugin
- func (p *Plugin) Atom(lang string) ([]*atom.Entry, error)
- func (p *Plugin) Console() []cli.Command
- func (p *Plugin) Init()
- func (p *Plugin) Mount(rt *gin.Engine)
- func (p *Plugin) Open(g *inject.Graph) error
- func (p *Plugin) Sitemap(languages ...string) ([]stm.URL, error)
- func (p *Plugin) Workers() map[string]job.Handler
- type Post
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateCertificate ¶
CreateCertificate create certs
Types ¶
type LeaveWord ¶
type LeaveWord struct { ID uint `gorm:"primary_key" json:"id"` CreatedAt time.Time `json:"createdAt"` Body string `json:"body"` Type string `json:"type"` }
LeaveWord leave-word
type Link ¶
type Link struct { web.Model Lang string `json:"lang"` Loc string `json:"loc"` Href string `json:"href"` Label string `json:"label"` Sort int `json:"sort"` }
Link link
type Notice ¶
type Notice struct { web.Model Lang string `json:"lang"` Body string `json:"body"` Type string `json:"type"` }
Notice notice
type Page ¶
type Page struct { web.Model Lang string `json:"lang"` Loc string `json:"loc"` Title string `json:"title"` Summary string `json:"summary"` Href string `json:"href"` Logo string `json:"logo"` Sort int `json:"sort"` }
Page page
type Plugin ¶
type Plugin struct { Db *gorm.DB `inject:""` Jwt *auth.Jwt `inject:""` Dao *auth.Dao `inject:""` I18n *i18n.I18n `inject:""` Settings *settings.Settings `inject:""` Server *job.Server `inject:""` Cache *cache.Cache `inject:""` Wrap *web.Wrap `inject:""` Matcher language.Matcher `inject:""` Render *render.Render `inject:""` }
Plugin plugin
Click to show internal directories.
Click to hide internal directories.