Versions in this module Expand all Collapse all v0 v0.1.0 Jan 28, 2016 Changes in this version + func ConfigAction(act func(*Model, *cli.Context) error) func(c *cli.Context) + func DatabaseAction(act func(*gorm.DB, *cli.Context) error) func(c *cli.Context) + func ElasticAction(act func(*elastic.Client, *Model, *cli.Context) error) func(c *cli.Context) + func RedisAction(act func(*redis.Pool, *cli.Context) error) func(c *cli.Context) + type Database struct + Adapter string + Extra map[string]string + Host string + Name string + Password string + Port int + User string + func (p *Database) Console() (string, []string) + func (p *Database) Execute(sql string) (string, []string) + type ElasticSearch struct + Host string + Index string + Port int + func (p *ElasticSearch) Url() string + type Http struct + Domain string + Port int + Ssl bool + type Model struct + Database *Database + ElasticSearch *ElasticSearch + Env string + Http *Http + Redis *Redis + Secrets []byte + SecretsS string + Storage *Storage + func Load(env string) (*Model, error) + func (p *Model) AesCipher() (cipher.Block, error) + func (p *Model) Home() string + func (p *Model) IsProduction() bool + func (p *Model) OpenDatabase() (*gorm.DB, error) + func (p *Model) OpenElastic() (*elastic.Client, error) + func (p *Model) OpenRedis() *redis.Pool + func (p *Model) OpenStorage() (storage.Provider, error) + type Redis struct + Db int + Host string + Port int + type Storage struct + Extra map[string]string + Type string