Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var CommitSHA = "debug"
CommitSHA 在编译时注入,为当前 Git Commit 哈希值。
Functions ¶
Types ¶
type MailSegment ¶
type MailSegment struct { Account string `toml:"account"` Password string `toml:"password"` SMTP string `toml:"smtp"` Port int `toml:"port"` }
var Mail MailSegment
type MySQLSegment ¶
type MySQLSegment struct { User string `toml:"user"` Password string `toml:"password"` Addr string `toml:"addr"` Name string `toml:"name"` }
var MySQL MySQLSegment
type RedisSegment ¶
var Redis RedisSegment
type SiteSegment ¶
type SiteSegment struct { Name string `toml:"name"` BaseURL string `toml:"base_url"` Port int `toml:"port"` ICP string `toml:"icp"` SecurityKey string `toml:"security_key"` CSRFKey string `toml:"csrf_key"` }
var Site SiteSegment
Click to show internal directories.
Click to hide internal directories.