Documentation ¶
Index ¶
- type ConfigurationRepository
- type MenuRepository
- func (r MenuRepository) Delete(ctx context.Context, ids ...int64) error
- func (r MenuRepository) FindByHandle(ctx context.Context, handle string) (m model.Menu, err error)
- func (r MenuRepository) FindByID(ctx context.Context, id int64) (model.Menu, error)
- func (r MenuRepository) Update(ctx context.Context, m *model.Menu) error
- type NodeRepository
- func (r NodeRepository) Delete(ctx context.Context, ids ...int64) error
- func (r NodeRepository) FindByID(ctx context.Context, id int64) (model.Node, error)
- func (r NodeRepository) FindWithChildren(ctx context.Context, id int64) (nodes []model.Node, err error)
- func (r NodeRepository) Update(ctx context.Context, m *model.Node) error
- type PageRepository
- func (r PageRepository) Delete(ctx context.Context, ids ...int64) error
- func (r PageRepository) FindByAlias(ctx context.Context, siteID int64, alias string, now time.Time) (m model.Page, err error)
- func (r PageRepository) FindByID(ctx context.Context, id int64) (m model.Page, err error)
- func (r PageRepository) FindByParentID(ctx context.Context, parentID int64, now time.Time) (pages []model.Page, err error)
- func (r PageRepository) FindByPattern(ctx context.Context, siteID int64, pattern string, now time.Time) (m model.Page, err error)
- func (r PageRepository) FindByURL(ctx context.Context, siteID int64, url string, now time.Time) (m model.Page, err error)
- func (r PageRepository) Update(ctx context.Context, m *model.Page) error
- type SiteRepository
- func (r SiteRepository) Delete(ctx context.Context, ids ...int64) error
- func (r SiteRepository) FindByHosts(ctx context.Context, hosts []string, now time.Time) (sites []model.Site, err error)
- func (r SiteRepository) FindByID(ctx context.Context, id int64) (model.Site, error)
- func (r SiteRepository) Update(ctx context.Context, m *model.Site) error
- type TemplateRepository
- func (r TemplateRepository) Delete(ctx context.Context, ids ...int64) error
- func (r TemplateRepository) FindByID(ctx context.Context, id int64) (model.Template, error)
- func (r TemplateRepository) FindByName(ctx context.Context, name string) (m model.Template, err error)
- func (r TemplateRepository) Update(ctx context.Context, m *model.Template) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ConfigurationRepository ¶
type ConfigurationRepository struct { repository.Configuration // contains filtered or unexported fields }
func NewConfigurationRepository ¶
func NewConfigurationRepository(inner repository.Configuration, c cms.Cache) ConfigurationRepository
func (ConfigurationRepository) Load ¶
func (r ConfigurationRepository) Load(ctx context.Context) (m model.Configuration, err error)
func (ConfigurationRepository) Save ¶
func (r ConfigurationRepository) Save(ctx context.Context, m *model.Configuration) error
type MenuRepository ¶
type MenuRepository struct { repository.Menu // contains filtered or unexported fields }
func NewMenuRepository ¶
func NewMenuRepository(inner repository.Menu, c cms.Cache) MenuRepository
func (MenuRepository) Delete ¶
func (r MenuRepository) Delete(ctx context.Context, ids ...int64) error
func (MenuRepository) FindByHandle ¶
type NodeRepository ¶
type NodeRepository struct { repository.Node // contains filtered or unexported fields }
func NewNodeRepository ¶
func NewNodeRepository(inner repository.Node, c cms.Cache) NodeRepository
func (NodeRepository) Delete ¶
func (r NodeRepository) Delete(ctx context.Context, ids ...int64) error
func (NodeRepository) FindWithChildren ¶
type PageRepository ¶
type PageRepository struct { repository.Page // contains filtered or unexported fields }
func NewPageRepository ¶
func NewPageRepository(inner repository.Page, c cms.Cache) PageRepository
func (PageRepository) Delete ¶
func (r PageRepository) Delete(ctx context.Context, ids ...int64) error
func (PageRepository) FindByAlias ¶
func (PageRepository) FindByParentID ¶
func (PageRepository) FindByPattern ¶
type SiteRepository ¶
type SiteRepository struct { repository.Site // contains filtered or unexported fields }
func NewSiteRepository ¶
func NewSiteRepository(inner repository.Site, c cms.Cache) SiteRepository
func (SiteRepository) Delete ¶
func (r SiteRepository) Delete(ctx context.Context, ids ...int64) error
func (SiteRepository) FindByHosts ¶
type TemplateRepository ¶
type TemplateRepository struct { repository.Template // contains filtered or unexported fields }
func NewTemplateRepository ¶
func NewTemplateRepository(inner repository.Template, c cms.Cache) TemplateRepository
func (TemplateRepository) Delete ¶
func (r TemplateRepository) Delete(ctx context.Context, ids ...int64) error
func (TemplateRepository) FindByName ¶
Click to show internal directories.
Click to hide internal directories.