adsa-cms: github.com/mmanjoura/adsa-cms/qor-example/config Index | Files | Directories

package config

import "github.com/mmanjoura/adsa-cms/qor-example/config"

Index

Package Files

config.go

Variables

var (
    Root    = os.Getenv("GOPATH") + "/src/github.com/mmanjoura/adsa-cms/qor-example"
    View    *render.Render
    Filebox *filebox.Filebox
)
var Config = struct {
    Port uint `default:"7000" env:"PORT"`
    DB   struct {
        Name     string `default:"qor_example"`
        Adapter  string `default:"mysql"`
        User     string
        Password string
    }
    SMTP SMTPConfig
}{}

type SMTPConfig Uses

type SMTPConfig struct {
    Host     string
    Port     string
    User     string
    Password string
    Site     string
}

func (SMTPConfig) HostWithPort Uses

func (s SMTPConfig) HostWithPort() string

Directories

PathSynopsis
admin
admin/bindatafs
api
auth
i18n
routes

Package config imports 4 packages (graph) and is imported by 7 packages. Updated 2017-06-20. Refresh now. Tools for package owners.