Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var UploadSetting = &Upload{}
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServerConfig Server `yaml:"listen"` SeoConfig Seo `yaml:"seo"` DatasourceConfig Datasource `yaml:"datasource"` UploadConfig Upload `yaml:"upload"` }
配置文件
type Datasource ¶
type Datasource struct { Host string `yaml:"host"` Port string `yaml:"port"` User string `yaml:"user"` Pwd string `yaml:"pwd"` Dbname string `yaml:"dbname"` Connections int `yaml:"connections"` Idles int `yaml:"idles"` TablePrefix string `yaml:"table_prefix"` }
数据源
type Seo ¶
type Seo struct { Title string `yaml:"title"` Keywords string `yaml:"keywords"` Description string `yaml:"description"` }
站点seo
Click to show internal directories.
Click to hide internal directories.