Documentation
¶
Index ¶
- func GetNamespace(contentType, status string) string
- type CacheIndex
- type Content
- func (c *Content) AllAdminTypeNames() []string
- func (c *Content) AllAdminTypes() map[string]content.Creator
- func (c *Content) AllContentTypeNames() []string
- func (c *Content) AllContentTypes() map[string]content.Creator
- func (c *Content) AllContents(contentType string) [][]byte
- func (c *Content) AllTypes() map[string]content.Creator
- func (c *Content) ApplyDomain(siteId string, domain string) (*valueobject.Domain, bool, error)
- func (c *Content) BuildTarget(contentType, id, status string) (string, error)
- func (c *Content) DeleteContent(contentType, id, status string) error
- func (c *Content) DeleteContentObject(ci any) error
- func (c *Content) GetContent(contentType, id, status string) ([]byte, error)
- func (c *Content) GetContentByHash(contentType, hash, status string) ([]byte, error)
- func (c *Content) GetContentCreator(name string) (content.Creator, bool)
- func (c *Content) GetContentObject(contentType, id string) (any, error)
- func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
- func (c *Content) GetDeployment(domain *valueobject.Domain, hostName string) (*valueobject.Deployment, error)
- func (c *Content) GetRandomContent(contentType, status string) ([]byte, error)
- func (c *Content) IsAdminType(name string) bool
- func (c *Content) LoadHugoProject() error
- func (c *Content) Marshal(content any) ([]byte, error)
- func (c *Content) NewContent(contentType string, data url.Values) (string, error)
- func (c *Content) NewPreview(domain *valueobject.Domain) (*valueobject.Preview, error)
- func (c *Content) NormalizeString(s string) (string, error)
- func (c *Content) PreviewTarget(contentType, id, status string) (string, string, error)
- func (c *Content) SortContent(contentType string) error
- func (c *Content) Unmarshal(data []byte, content any) error
- func (c *Content) UpdateContent(contentType string, data url.Values) error
- func (c *Content) UpdateContentObject(ci any) error
- type Hugo
- type Search
- func (s *Search) DeleteIndex(id string) error
- func (s *Search) TermQuery(typeName string, keyValues map[string]string, count, offset int) ([]content.Identifier, error)
- func (s *Search) TypeQuery(typeName, query string, count, offset int) ([]content.Identifier, error)
- func (s *Search) UpdateIndex(ns, id string, data []byte) error
- type TypeService
- type Writer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespace ¶
Types ¶
type CacheIndex ¶
type Content ¶
type Content struct {
UserTypes map[string]content.Creator
AdminTypes map[string]content.Creator
Repo repository.Repository
*Search
*Hugo
Log loggers.Logger
}
func (*Content) AllAdminTypeNames ¶
func (*Content) AllContentTypeNames ¶
func (*Content) AllContents ¶
func (*Content) ApplyDomain ¶
func (*Content) BuildTarget ¶
func (*Content) DeleteContent ¶
func (*Content) DeleteContentObject ¶
func (*Content) GetContent ¶
func (*Content) GetContentByHash ¶
func (*Content) GetContentCreator ¶
func (*Content) GetContentObject ¶
func (*Content) GetContents ¶
func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
func (*Content) GetDeployment ¶
func (c *Content) GetDeployment(domain *valueobject.Domain, hostName string) (*valueobject.Deployment, error)
func (*Content) GetRandomContent ¶
func (*Content) IsAdminType ¶
func (*Content) LoadHugoProject ¶
func (*Content) NewContent ¶
func (*Content) NewPreview ¶
func (c *Content) NewPreview(domain *valueobject.Domain) (*valueobject.Preview, error)
func (*Content) PreviewTarget ¶
func (*Content) SortContent ¶
func (*Content) UpdateContent ¶
func (*Content) UpdateContentObject ¶
type Hugo ¶
type Hugo struct {
Services content.Services
Fs afero.Fs
DirService content.DirService
Log loggers.Logger
// contains filtered or unexported fields
}
func (*Hugo) LoadProject ¶
type Search ¶
type Search struct {
TypeService TypeService
Repo repository.Repository
Log loggers.Logger
IndicesMap map[string]*CacheIndex
// contains filtered or unexported fields
}
func (*Search) DeleteIndex ¶
DeleteIndex removes data from a content type's search index at the given identifier
type TypeService ¶
Click to show internal directories.
Click to hide internal directories.