Documentation ¶
Overview ¶
Package config 用于处理配置
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var Root string
Root 项目的根目录
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { // 应用的名称 Name string `toml:"name"` // 应用的域名 URL string `toml:"url"` // 应用的监听地址,为空就是 0.0.0.0 Host string `toml:"host"` // 应用端口号 Port uint `toml:"port"` // 是否开启 debug, // 如果 ture ,对应的 gin 就是 debug 模式, // 如果 false , 对应的 gin 就是 release 模式 Debug bool // 日志相关的配置 Log Log `toml:"log"` // markdown 的默认目录 MarkdownDir string `toml:"markdown_dir"` // icp 备案信息 ICP string `toml:"icp"` // 百度统计 的 key Tongji string // Github 钩子中配置的 Secret Secret string }
Config 配置文件类型
var ( // Cfg 配置文件 Cfg Config )
Click to show internal directories.
Click to hide internal directories.