Documentation
¶
Index ¶
Constants ¶
View Source
const ( // Template Type PONGO2 = "PONGO2" TEMPLATE = "TEMPLATE" // Bindata BINDATA = "BINDATA" // File FILE = "FILE" // Redis REDIS = "REDIS" // Memcached MEMCACHED = "MEMCACHED" // Cookie COOKIE = "COOKIE" // In Memory IN_MEMORY = "IN_MEMARY" )
Variables ¶
View Source
var (
Conf config // holds the global app config.
)
Functions ¶
func InitConfig ¶
initConfig initializes the app configuration by first setting defaults, then overriding settings from the app config file, then overriding It returns an error if any.
Types ¶
type Upload ¶
type Upload struct { Type string `toml:"type"` //上传方式 local:本地 QiNiu:七牛云存储 Ext string `toml:"ext"` //允许上传后缀 RootPath string `toml:"root_path"` //上传文件目录 RootPathTmp string `toml:"root_path_tmp"` //临时文件目录 Size int `toml:"size"` //最大上传文件大小 5*1024*1024 LocalSaveIs bool `toml:"local_save_is"` //是否本地保存 Http string `toml:"http"` //域名 }
Click to show internal directories.
Click to hide internal directories.