Documentation ¶
Index ¶
Constants ¶
View Source
const ( LangEnUS = iota LangZhCN )
View Source
const (
APP_VER = "1.0.0.1"
)
Variables ¶
View Source
var ( AppName string AppVer string AppHost string AppUrl string AppLogo string ImgBedUrl string QiniuEnabled bool QiniuUrl string QiniuAppKey string QiniuSecretKey string QiniuBucketName string UpYunEnabled bool UpYunUrl string UpYunUsername string UpYunPassword string UpYunBucketName string ReadabilityAppKey string ReadabilityBackend string EmbedlyAppKey string EnforceRedirect bool AvatarURL string SecretKey string ORCAVerifyCode string IsProMode bool ActiveCodeLives int ResetPwdCodeLives int CategoryHideOnHome int DateFormat string DateTimeFormat string DateTimeShortFormat string TimeZone string RealtimeRenderMD bool ImageSizeSmall int ImageSizeMiddle int ImageLinkAlphabets []byte ImageXSend bool ImageXSendHeader string Langs []string LoginRememberDays int LoginMaxRetries int LoginFailedBlocks int CookieRememberName string CookieUserName string // search SearchEnabled bool NativeSearch bool // sphinx search setting SphinxEnabled bool SphinxHost string SphinxIndex string SphinxMaxConn int // mail setting MailUser string MailFrom string MailHost string MailAuthUser string MailAuthPass string // ads setting Ads AdRecords // contact settings Contacts ContactRecords // memcached setting MemcachedEnabled bool MemcachedConn string // redis setting RedisEnabled bool RedisConn string // pay setting AlipayPartnerId string AlipaySignKey string AlipaySellerEmail string AlipaySellerId string PaypalSecretAccount string )
View Source
var ( // OAuth WeiboClientId string WeiboClientSecret string )
View Source
var ( Cfg *goconfig.ConfigFile Cache cache.Cache Captcha *captcha.Captcha )
View Source
var ( GlobalConfPath = "conf/global/app.ini" AppConfPath = "conf/app.ini" CompressConfPath = "conf/compress.json" AdsConfPath = "conf/ads.xml" ContactsConfPath = "conf/contact.xml" )
View Source
var (
// Social Auth
SocialAuth *social.SocialAuth
)
Functions ¶
func IsMatchHost ¶
func LoadContacts ¶
func LoadContacts()
Types ¶
type ContactRecord ¶
type ContactRecords ¶
type ContactRecords struct { XMLName xml.Name `xml:"contact"` Records []ContactRecord `xml:"item"` }
Click to show internal directories.
Click to hide internal directories.