Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoadConfig ¶
Types ¶
type Application ¶
type Application struct { Cf *AppConf Db *youdb.DB Sc *securecookie.SecureCookie QnZone *storage.Zone }
func (*Application) Close ¶
func (app *Application) Close()
type SiteConf ¶
type SiteConf struct { GoVersion string MD5Sums string Name string Desc string AdminEmail string MainDomain string // 上传图片后添加网址前缀, eg: http://domian.com 、http://234.21.35.89:8082 MainNodeIds string TimeZone int HomeShowNum int PageShowNum int TagShowNum int CategoryShowNum int TitleMaxLen int ContentMaxLen int PostInterval int CommentListNum int CommentInterval int Authorized bool RegReview bool CloseReg bool AutoDataBackup bool AutoGetTag bool GetTagApi string QQClientID int QQClientSecret string WeiboClientID int WeiboClientSecret string // eg: "jpg,jpeg,gif,zip,pdf" UploadSuffix string UploadImgOnly bool UploadImgResize bool UploadMaxSize int UploadMaxSizeByte int64 QiniuAccessKey string QiniuSecretKey string QiniuDomain string QiniuBucket string UpyunDomain string UpyunBucket string UpyunUser string UpyunPw string SMTPServer string SMTPPort int SMTPUser string SMTPPassword string SMSURL string SMSAppKey string SMSAppSecret string }
Click to show internal directories.
Click to hide internal directories.