Versions in this module Expand all Collapse all v0 v0.0.2 Jun 23, 2016 Changes in this version + func Bytes(name string, buf []byte) gin.HandlerFunc v0.0.1 Jun 12, 2016 Changes in this version + var OK = gin.H + func Action(f cli.ActionFunc) cli.ActionFunc + func Host() string + func IocAction(fn func(*cli.Context, *inject.Graph) error) cli.ActionFunc + func IsProduction() bool + func Logger() *logging.Logger + func Loop(fn func(Engine) error) error + func OpenDatabase() (*gorm.DB, error) + func OpenRedis() *redis.Pool + func RandomStr(n int) string + func Register(ens ...Engine) + func Rest(h HandlerFunc) gin.HandlerFunc + func Run() error + type Cache struct + Logger *logging.Logger + Prefix string + Redis *redis.Pool + func (p *Cache) Flush() error + func (p *Cache) Keys() ([]string, error) + func (p *Cache) Page(exp time.Duration, fn gin.HandlerFunc) gin.HandlerFunc + type CacheResponse struct + Data []byte + Status int + Type string + type Engine interface + Map func(*inject.Graph) error + Migrate func(*gorm.DB) + Mount func(*gin.Engine) + Seed func() + Shell func() []cli.Command + Worker func() + type HandlerFunc func(*gin.Context) (interface{}, error) + type Link struct + Href string + Label string + type Model struct + CreatedAt time.Time + ID uint + UpdatedAt time.Time