Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetSiteConfigByKey ¶
func RuntimePath ¶
Types ¶
type Config ¶
type Config struct { Debug bool `yaml:"debug"` Port int64 `yaml:"port"` View viewConf `yaml:"view"` Session SessConf `yaml:"session"` LogPath string `yaml:"log_path"` RuntimePath string `yaml:"runtime_path"` PluginPath string `yaml:"plugin_path"` PluginEnable bool `yaml:"plugin_enable"` CacheDb string `yaml:"cache_db"` Charset string `yaml:"charset"` JwtKey string `yaml:"jwtkey"` HashKey string `yaml:"hashkey"` BlockKey string `yaml:"blockkey"` Upload struct { MaxBodySize int64 `yaml:"max_bodysize"` Engine string `yaml:"engine"` BasePath string `yaml:"base_path"` } `yaml:"upload"` Statics []struct { Route string `yaml:"route"` Path string `yaml:"path"` } `yaml:"statics"` Search struct { Username string `yaml:"username"` Password string `yaml:"password"` Url string `yaml:"url"` } `yaml:"search"` }
func (*Config) StaticPrefixArr ¶
type DbConf ¶
type DbConf struct { *xorm.Engine `yaml:"-"` sync.Once `yaml:"-"` Db Db `yaml:"db"` Orm orm `yaml:"orm"` Redis redisConf `yaml:"redis"` }
func (*DbConf) Initialized ¶
Click to show internal directories.
Click to hide internal directories.