本文整理汇总了Golang中github.com/corestoreio/csfw/config/model.NewStr函数的典型用法代码示例。如果您正苦于以下问题:Golang NewStr函数的具体用法?Golang NewStr怎么用?Golang NewStr使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了NewStr函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。
示例1: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.SystemFullPageCacheCachingApplication = model.NewStr(`system/full_page_cache/caching_application`, model.WithConfigStructure(cfgStruct))
pp.SystemFullPageCacheTtl = model.NewStr(`system/full_page_cache/ttl`, model.WithConfigStructure(cfgStruct))
return pp
}
示例2: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.DevFrontEndDevelopmentWorkflowType = model.NewStr(`dev/front_end_development_workflow/type`, model.WithConfigStructure(cfgStruct))
pp.DevRestrictAllowIps = model.NewStr(`dev/restrict/allow_ips`, model.WithConfigStructure(cfgStruct))
return pp
}
示例3: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.CatalogSearchEngine = model.NewStr(`catalog/search/engine`, model.WithConfigStructure(cfgStruct))
pp.CatalogSearchSearchType = model.NewStr(`catalog/search/search_type`, model.WithConfigStructure(cfgStruct))
return pp
}
示例4: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.SystemAdminnotificationUseHttps = model.NewBool(`system/adminnotification/use_https`, model.WithConfigStructure(cfgStruct))
pp.SystemAdminnotificationFrequency = model.NewStr(`system/adminnotification/frequency`, model.WithConfigStructure(cfgStruct))
pp.SystemAdminnotificationLastUpdate = model.NewStr(`system/adminnotification/last_update`, model.WithConfigStructure(cfgStruct))
return pp
}
示例5: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.CatalogSeoSearchTerms = model.NewBool(`catalog/seo/search_terms`, model.WithConfigStructure(cfgStruct))
pp.CatalogSearchEngine = model.NewStr(`catalog/search/engine`, model.WithConfigStructure(cfgStruct))
pp.CatalogSearchMinQueryLength = model.NewStr(`catalog/search/min_query_length`, model.WithConfigStructure(cfgStruct))
pp.CatalogSearchMaxQueryLength = model.NewStr(`catalog/search/max_query_length`, model.WithConfigStructure(cfgStruct))
return pp
}
示例6: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.CatalogSeoCategoryUrlSuffix = model.NewStr(`catalog/seo/category_url_suffix`, model.WithConfigStructure(cfgStruct))
pp.CatalogSeoProductUrlSuffix = model.NewStr(`catalog/seo/product_url_suffix`, model.WithConfigStructure(cfgStruct))
pp.CatalogSeoProductUseCategories = model.NewBool(`catalog/seo/product_use_categories`, model.WithConfigStructure(cfgStruct))
pp.CatalogSeoSaveRewritesHistory = model.NewBool(`catalog/seo/save_rewrites_history`, model.WithConfigStructure(cfgStruct))
return pp
}
示例7: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.SalesMsrpEnabled = model.NewBool(`sales/msrp/enabled`, model.WithConfigStructure(cfgStruct))
pp.SalesMsrpDisplayPriceType = model.NewStr(`sales/msrp/display_price_type`, model.WithConfigStructure(cfgStruct))
pp.SalesMsrpExplanationMessage = model.NewStr(`sales/msrp/explanation_message`, model.WithConfigStructure(cfgStruct))
pp.SalesMsrpExplanationMessageWhatsThis = model.NewStr(`sales/msrp/explanation_message_whats_this`, model.WithConfigStructure(cfgStruct))
return pp
}
示例8: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.ContactContactEnabled = model.NewBool(`contact/contact/enabled`, model.WithConfigStructure(cfgStruct))
pp.ContactEmailRecipientEmail = model.NewStr(`contact/email/recipient_email`, model.WithConfigStructure(cfgStruct))
pp.ContactEmailSenderEmailIdentity = model.NewStr(`contact/email/sender_email_identity`, model.WithConfigStructure(cfgStruct))
pp.ContactEmailEmailTemplate = model.NewStr(`contact/email/email_template`, model.WithConfigStructure(cfgStruct))
return pp
}
示例9: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.CatalogRecentlyProductsScope = model.NewStr(`catalog/recently_products/scope`, model.WithConfigStructure(cfgStruct))
pp.CatalogRecentlyProductsViewedCount = model.NewStr(`catalog/recently_products/viewed_count`, model.WithConfigStructure(cfgStruct))
pp.CatalogRecentlyProductsComparedCount = model.NewStr(`catalog/recently_products/compared_count`, model.WithConfigStructure(cfgStruct))
pp.ReportsDashboardYtdStart = model.NewStr(`reports/dashboard/ytd_start`, model.WithConfigStructure(cfgStruct))
pp.ReportsDashboardMtdStart = model.NewStr(`reports/dashboard/mtd_start`, model.WithConfigStructure(cfgStruct))
return pp
}
示例10: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.OauthCleanupCleanupProbability = model.NewStr(`oauth/cleanup/cleanup_probability`, model.WithConfigStructure(cfgStruct))
pp.OauthCleanupExpirationPeriod = model.NewStr(`oauth/cleanup/expiration_period`, model.WithConfigStructure(cfgStruct))
pp.OauthConsumerExpirationPeriod = model.NewStr(`oauth/consumer/expiration_period`, model.WithConfigStructure(cfgStruct))
pp.OauthConsumerPostMaxredirects = model.NewStr(`oauth/consumer/post_maxredirects`, model.WithConfigStructure(cfgStruct))
pp.OauthConsumerPostTimeout = model.NewStr(`oauth/consumer/post_timeout`, model.WithConfigStructure(cfgStruct))
return pp
}
示例11: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.WebCookieCookieLifetime = model.NewStr(`web/cookie/cookie_lifetime`, model.WithConfigStructure(cfgStruct))
pp.WebCookieCookiePath = model.NewStr(`web/cookie/cookie_path`, model.WithConfigStructure(cfgStruct))
pp.WebCookieCookieDomain = model.NewStr(`web/cookie/cookie_domain`, model.WithConfigStructure(cfgStruct))
pp.WebCookieCookieHttponly = model.NewBool(`web/cookie/cookie_httponly`, model.WithConfigStructure(cfgStruct))
pp.WebCookieCookieRestriction = model.NewBool(`web/cookie/cookie_restriction`, model.WithConfigStructure(cfgStruct))
return pp
}
示例12: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.SystemBackupEnabled = model.NewBool(`system/backup/enabled`, model.WithConfigStructure(cfgStruct))
pp.SystemBackupType = model.NewStr(`system/backup/type`, model.WithConfigStructure(cfgStruct))
pp.SystemBackupTime = model.NewStr(`system/backup/time`, model.WithConfigStructure(cfgStruct))
pp.SystemBackupFrequency = model.NewStr(`system/backup/frequency`, model.WithConfigStructure(cfgStruct))
pp.SystemBackupMaintenance = model.NewBool(`system/backup/maintenance`, model.WithConfigStructure(cfgStruct))
return pp
}
示例13: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.CatalogLayeredNavigationDisplayProductCount = model.NewBool(`catalog/layered_navigation/display_product_count`, model.WithConfigStructure(cfgStruct))
pp.CatalogLayeredNavigationPriceRangeCalculation = model.NewStr(`catalog/layered_navigation/price_range_calculation`, model.WithConfigStructure(cfgStruct))
pp.CatalogLayeredNavigationPriceRangeStep = model.NewStr(`catalog/layered_navigation/price_range_step`, model.WithConfigStructure(cfgStruct))
pp.CatalogLayeredNavigationPriceRangeMaxIntervals = model.NewStr(`catalog/layered_navigation/price_range_max_intervals`, model.WithConfigStructure(cfgStruct))
pp.CatalogLayeredNavigationOnePriceInterval = model.NewBool(`catalog/layered_navigation/one_price_interval`, model.WithConfigStructure(cfgStruct))
pp.CatalogLayeredNavigationIntervalDivisionLimit = model.NewStr(`catalog/layered_navigation/interval_division_limit`, model.WithConfigStructure(cfgStruct))
return pp
}
示例14: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.SendfriendEmailEnabled = model.NewBool(`sendfriend/email/enabled`, model.WithConfigStructure(cfgStruct))
pp.SendfriendEmailTemplate = model.NewStr(`sendfriend/email/template`, model.WithConfigStructure(cfgStruct))
pp.SendfriendEmailAllowGuest = model.NewBool(`sendfriend/email/allow_guest`, model.WithConfigStructure(cfgStruct))
pp.SendfriendEmailMaxRecipients = model.NewStr(`sendfriend/email/max_recipients`, model.WithConfigStructure(cfgStruct))
pp.SendfriendEmailMaxPerHour = model.NewStr(`sendfriend/email/max_per_hour`, model.WithConfigStructure(cfgStruct))
pp.SendfriendEmailCheckBy = model.NewStr(`sendfriend/email/check_by`, model.WithConfigStructure(cfgStruct))
return pp
}
示例15: init
func (pp *PkgBackend) init(cfgStruct element.SectionSlice) *PkgBackend {
pp.Lock()
defer pp.Unlock()
pp.PromoAutoGeneratedCouponCodesLength = model.NewStr(`promo/auto_generated_coupon_codes/length`, model.WithConfigStructure(cfgStruct))
pp.PromoAutoGeneratedCouponCodesFormat = model.NewStr(`promo/auto_generated_coupon_codes/format`, model.WithConfigStructure(cfgStruct))
pp.PromoAutoGeneratedCouponCodesPrefix = model.NewStr(`promo/auto_generated_coupon_codes/prefix`, model.WithConfigStructure(cfgStruct))
pp.PromoAutoGeneratedCouponCodesSuffix = model.NewStr(`promo/auto_generated_coupon_codes/suffix`, model.WithConfigStructure(cfgStruct))
pp.PromoAutoGeneratedCouponCodesDash = model.NewStr(`promo/auto_generated_coupon_codes/dash`, model.WithConfigStructure(cfgStruct))
pp.RssCatalogDiscounts = model.NewBool(`rss/catalog/discounts`, model.WithConfigStructure(cfgStruct))
return pp
}