Documentation
¶
Index ¶
- Constants
- func InitStore(filepath string) (cmsstore.StoreInterface, error)
- func InitStoreWithVersioning(filepath string) (cmsstore.StoreInterface, error)
- func InitStoreWithVersioningAndDB(filepath string) (cmsstore.StoreInterface, *sql.DB, error)
- func InitStoreWithVersioningForTest(t *testing.T) (cmsstore.StoreInterface, func())
- func SeedPage(store cmsstore.StoreInterface, siteID string, pageID string) (cmsstore.PageInterface, error)
- func SeedSite(store cmsstore.StoreInterface, siteID string) (cmsstore.SiteInterface, error)
- func SeedTemplate(store cmsstore.StoreInterface, siteID string, templateID string) (cmsstore.TemplateInterface, error)
- func SeedTranslation(store cmsstore.StoreInterface, siteID string, translationID string) (cmsstore.TranslationInterface, error)
Constants ¶
View Source
const PAGE_01 = "PAGE_01"
View Source
const PAGE_02 = "PAGE_02"
View Source
const SITE_01 = "SITE_01"
View Source
const SITE_02 = "SITE_02"
View Source
const TEMPLATE_01 = "TEMPLATE_01"
View Source
const TEMPLATE_02 = "TEMPLATE_02"
View Source
const TRANSLATION_01 = "TRANSLATION_01"
View Source
const TRANSLATION_02 = "TRANSLATION_02"
Variables ¶
This section is empty.
Functions ¶
func InitStoreWithVersioning ¶ added in v1.32.0
func InitStoreWithVersioning(filepath string) (cmsstore.StoreInterface, error)
InitStoreWithVersioning creates a store with versioning enabled. Use a file-based database path instead of ":memory:" to avoid deadlocks.
func InitStoreWithVersioningAndDB ¶ added in v1.32.0
InitStoreWithVersioningAndDB creates a store with versioning enabled and returns both the store and db connection. Use a file-based database path instead of ":memory:" to avoid deadlocks.
func InitStoreWithVersioningForTest ¶ added in v1.32.0
func InitStoreWithVersioningForTest(t *testing.T) (cmsstore.StoreInterface, func())
InitStoreWithVersioningForTest creates a store with versioning enabled using a file-based database. This is intended for tests that require versioning functionality.
func SeedPage ¶
func SeedPage(store cmsstore.StoreInterface, siteID string, pageID string) (cmsstore.PageInterface, error)
func SeedSite ¶
func SeedSite(store cmsstore.StoreInterface, siteID string) (cmsstore.SiteInterface, error)
func SeedTemplate ¶
func SeedTemplate(store cmsstore.StoreInterface, siteID string, templateID string) (cmsstore.TemplateInterface, error)
func SeedTranslation ¶ added in v1.15.0
func SeedTranslation(store cmsstore.StoreInterface, siteID string, translationID string) (cmsstore.TranslationInterface, error)
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.