cache

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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 (ConfigurationRepository) Save

type MenuRepository struct {
	repository.Menu
	// contains filtered or unexported fields
}

func NewMenuRepository

func NewMenuRepository(inner repository.Menu, c cms.Cache) 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

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) FindByID

func (r NodeRepository) FindByID(ctx context.Context, id int64) (model.Node, error)

func (NodeRepository) FindWithChildren

func (r NodeRepository) FindWithChildren(ctx context.Context, id int64) (nodes []model.Node, err error)

func (NodeRepository) Update

func (r NodeRepository) Update(ctx context.Context, m *model.Node) error

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 (r PageRepository) FindByAlias(ctx context.Context, siteID int64, alias string, now time.Time) (m model.Page, err error)

func (PageRepository) FindByID

func (r PageRepository) FindByID(ctx context.Context, id int64) (m model.Page, err error)

func (PageRepository) FindByParentID

func (r PageRepository) FindByParentID(ctx context.Context, parentID int64, now time.Time) (pages []model.Page, err error)

func (PageRepository) FindByPattern

func (r PageRepository) FindByPattern(ctx context.Context, siteID int64, pattern string, now time.Time) (m model.Page, err error)

func (PageRepository) FindByURL

func (r PageRepository) FindByURL(ctx context.Context, siteID int64, url string, now time.Time) (m model.Page, err error)

func (PageRepository) Update

func (r PageRepository) Update(ctx context.Context, m *model.Page) error

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

func (r SiteRepository) FindByHosts(ctx context.Context, hosts []string, now time.Time) (sites []model.Site, err error)

func (SiteRepository) FindByID

func (r SiteRepository) FindByID(ctx context.Context, id int64) (model.Site, error)

func (SiteRepository) Update

func (r SiteRepository) Update(ctx context.Context, m *model.Site) error

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) FindByID

func (r TemplateRepository) FindByID(ctx context.Context, id int64) (model.Template, error)

func (TemplateRepository) FindByName

func (r TemplateRepository) FindByName(ctx context.Context, name string) (m model.Template, err error)

func (TemplateRepository) Update

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL