site

package
v0.0.0-...-beacdf2 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2017 License: MIT Imports: 48 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateCertificate

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

CreateCertificate create certs

func WritePemFile

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

WritePemFile wirte to a pem format file

Types

type Card

type Card struct {
	web.Model

	Loc       string `json:"loc"`
	Title     string `json:"title"`
	Summary   string `json:"summary"`
	Type      string `json:"type"`
	Href      string `json:"href"`
	SortOrder int    `json:"sortOrder"`
	Action    string `json:"action"`
}

Card card

func (Card) TableName

func (Card) TableName() string

TableName table name

type FriendLink struct {
	web.Model

	Title     string `json:"title"`
	Home      string `json:"home"`
	SortOrder int    `json:"sortOrder"`
}

FriendLink friend_links

func (FriendLink) TableName

func (FriendLink) TableName() string

TableName table name

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 Link struct {
	web.Model
	Loc       string `json:"loc"`
	Href      string `json:"href"`
	Label     string `json:"label"`
	SortOrder int    `json:"sortOrder"`
}

Link link

func (Link) TableName

func (Link) TableName() string

TableName table name

type Plugin

type Plugin struct {
	Db       *gorm.DB           `inject:""`
	Dao      *auth.Dao          `inject:""`
	I18n     *i18n.I18n         `inject:""`
	Cache    *cache.Cache       `inject:""`
	Settings *settings.Settings `inject:""`
	Server   *job.Server        `inject:""`
	Jwt      *auth.Jwt          `inject:""`
}

Plugin plugin

func (*Plugin) Atom

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

Atom rss.atom

func (*Plugin) Console

func (p *Plugin) Console() []cli.Command

Console console commands

func (*Plugin) Mount

func (p *Plugin) Mount(rt *axe.Router)

Mount mount web points

func (*Plugin) Open

func (p *Plugin) Open(g *inject.Graph) error

Open init beans

func (*Plugin) Sitemap

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

Sitemap sitemap.xml.gz

func (*Plugin) Workers

func (p *Plugin) Workers() map[string]job.Handler

Workers background workers

Jump to

Keyboard shortcuts

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