base

package
v0.0.0-...-52f8398 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2016 License: MIT Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Engine

type Engine struct {
}

Engine base engine

func (*Engine) Map

func (p *Engine) Map(inj inject.Injector) martini.Handler

Map map objects

func (*Engine) Migrate

func (p *Engine) Migrate() martini.Handler

Migrate call by db:migrate

func (*Engine) Mount

func (p *Engine) Mount(rt martini.Router)

Mount mount to web

func (*Engine) Seed

func (p *Engine) Seed() martini.Handler

Seed call by db:seed

func (*Engine) Shell

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

Shell shell commands

func (*Engine) Worker

func (p *Engine) Worker() martini.Handler

Worker call by worker

type Notice

type Notice struct {
	web.Model
	Lang    string `gorm:"not null;type:varchar(8);index" json:"lang"`
	Content string `gorm:"not null;type:text" json:"content"`
}

Notice notice model

type Site

type Site struct {
	Lang        string   `json:"lang"`
	Title       string   `json:"title"`
	SubTitle    string   `json:"subTitle"`
	Description string   `json:"description"`
	Keywords    string   `json:"keywords"`
	Copyright   string   `json:"copyright"`
	Links       []string `json:"links"`
}

Site site info model

Jump to

Keyboard shortcuts

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