site

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2017 License: MIT Imports: 36 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate added in v0.3.0

func CreateCertificate(ca bool, subject pkix.Name, years int) ([]byte, []byte, error)

CreateCertificate create certs

func WritePemFile added in v0.3.0

func WritePemFile(file, _type string, buf []byte, mode os.FileMode) error

WritePemFile wirte to a pem format file

Types

type Engine added in v0.3.0

type Engine struct {
	Cache    *web.Cache       `inject:""`
	I18n     *web.I18n        `inject:""`
	Settings *web.Settings    `inject:""`
	Db       *gorm.DB         `inject:""`
	Jwt      *auth.Jwt        `inject:""`
	Redis    *redis.Pool      `inject:""`
	Matcher  language.Matcher `inject:""`
	Dao      *auth.Dao        `inject:""`
	Queue    *web.Queue       `inject:""`
}

Engine engine

func (*Engine) Atom added in v0.3.0

func (p *Engine) Atom(lang string) ([]*atom.Entry, error)

Atom rss.atom

func (*Engine) Mount added in v0.3.0

func (p *Engine) Mount(rt *gin.Engine)

Mount web mount-points

func (*Engine) RegisterWorker added in v0.3.0

func (p *Engine) RegisterWorker()

RegisterWorker register worker

func (*Engine) Shell added in v0.3.0

func (p *Engine) Shell() []cli.Command

Shell shell commands

func (*Engine) Sitemap added in v0.3.0

func (p *Engine) Sitemap() ([]stm.URL, error)

Sitemap sitemap.xml.gz

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

func (LeaveWord) TableName

func (LeaveWord) TableName() string

TableName table name

type Notice

type Notice struct {
	web.Model
	Body string `json:"body"`
	Type string `json:"type"`
}

Notice notice

func (Notice) TableName

func (Notice) TableName() string

TableName table name

Jump to

Keyboard shortcuts

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