site

package
v0.0.0-...-c17893f Latest Latest
Warning

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

Go to latest
Published: May 27, 2016 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Aes

func Aes() (*gails.Aes, error)

func Database

func Database() (*gorm.DB, error)

func Redis

func Redis() *redis.Pool

Types

type Engine

type Engine struct {
	Db     *gorm.DB        `inject:""`
	Logger *logging.Logger `inject:""`
}

func (*Engine) Assets

func (p *Engine) Assets() error

func (*Engine) Map

func (p *Engine) Map(inj *inject.Graph) error

func (*Engine) Migrate

func (p *Engine) Migrate()

func (*Engine) Mount

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

func (*Engine) Seed

func (p *Engine) Seed()

func (*Engine) Shell

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

type Notice

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

Notice notice model

Jump to

Keyboard shortcuts

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