Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Root = os.Getenv("GOPATH") + "/src/github.com/dfang/qor-demo" Root, _ = os.Getwd() Mailer *mailer.Mailer Render = render.New() // AmazonPay amazonpay.AmazonPayService PaymentGateway gomerchant.PaymentGateway RedirectBack = redirect_back.New(&redirect_back.Config{ SessionManager: manager.SessionManager, IgnoredPrefixes: []string{"/auth"}, }) StartUpStartTime *time.Time )
View Source
var Config = struct { HTTPS bool `default:"false" env:"HTTPS"` Port uint `default:"7000" env:"PORT"` Redis struct { Host string `env:"REDIS_HOST" default:"localhost"` Port string `env:"REDIS_PORT" default:"6379"` } FaktoryHost string `env:"FAKTORY_HOST" default:"localhost"` FaktoryPort string `env:"FAKTORY_PORT" default:"7419"` FaktoryUIPort string `env:"FAKTORY_UI_PORT" default:"7420"` DB struct { Name string `env:"DBName" default:"qor_example"` Adapter string `env:"DBAdapter" default:"postgres"` Host string `env:"DBHost" default:"localhost"` Port string `env:"DBPort" default:"5432"` User string `env:"DBUser"` Password string `env:"DBPassword"` } S3 struct { AccessKeyID string `env:"QOR_AWS_ACCESS_KEY_ID"` SecretAccessKey string `env:"QOR_AWS_SECRET_ACCESS_KEY"` Region string `env:"QOR_AWS_REGION"` S3Bucket string `env:"QOR_AWS_BUCKET"` } Qiniu struct { AccessID string `env:"QOR_QINIU_ACCESS_ID"` AccessKey string `env:"QOR_QINIU_ACCESS_KEY"` Bucket string `env:"QOR_QINIU_BUCKET"` Region string `env:"QOR_QINIU_REGION"` Endpoint string `env:"QOR_QINIU_ENDPOINT"` } AmazonPay struct { MerchantID string `env:"AmazonPayMerchantID"` AccessKey string `env:"AmazonPayAccessKey"` SecretKey string `env:"AmazonPaySecretKey"` ClientID string `env:"AmazonPayClientID"` ClientSecret string `env:"AmazonPayClientSecret"` Sandbox bool `env:"AmazonPaySandbox"` CurrencyCode string `env:"AmazonPayCurrencyCode" default:"JPY"` } Cron struct { ExpireAftersales string `env:"EXPIRE_AFTERSALES" default:"*/60 * * * * *"` FreezeAuditedAftersales string `env:"FREEZE_AUDITED_AFTERSALES" default:"0 */2 * * * *"` UnfreezeAftersales string `env:"UNFREEZE_AFTERSALES" default:"0 */5 * * * *` UpdateBalances string `env:"UPDATE_BALANCES" default:"0 */5 * * * *` AutoExportMobilePhones string `env:"AUTO_EXPORT_MOBILE_PHONES" default:"0 0 1 * * *"` AutoExportOrderDetails string `env:"AUTO_EXPORT_ORDER_DETAILS" default:"0 0 1 * * *"` AutoExportOrderFollowUps string `env:"AUTO_EXPORT_ORDER_FOLLOWUPS" default:"0 0 1 * * *"` AutoExportOrderFees string `env:"AUTO_EXPORT_ORDER_FEES" default:"0 */1 * * * *"` AutoUpdateOrderItems string `env:"AUTO_UPDATE_ORDER_ITEMS" default:"0 */5 * * * *"` AutoDeliverOrders string `env:"AUTO_DELIVERY_ORDERS" default:"0 0 1 * *"` // DEMO_MODE = true 才生效 AutoInquire string `env:"AutoInquire", default:"*/30 * * * * *"` AutoSchedule string `env:"AutoSchedule", default:"0 */5 * * * *"` AutoProcess string `env:"AutoProcess", default:"0 */2 * * * *"` AutoFinish string `env:"AutoFinish", default:"0 */2 * * * *"` AutoAudit string `env:"AutoAudit", default:"0 */1 * * * *"` AutoWithdraw string `env:"AutoWithdraw", default:"0 */5 * * * *"` AutoAward string `env:"AutoAward", default:"0 */6 * * * *"` AutoFine string `env:"AutoFine", default:"0 */7 * * * *"` AutoGenerateAftersales string `env:"AutoGenerateAftersales", default:"0 */30 * * * *"` } SMTP SMTPConfig Github github.Config Google google.Config Facebook facebook.Config Twitter twitter.Config GoogleAPIKey string `env:"GoogleAPIKey"` BaiduAPIKey string `env:"BaiduAPIKey"` }{}
Functions ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.