Documentation ¶
Index ¶
- func GetNamespace(contentType, status string) string
- func Slug(i content.Identifiable) (string, error)
- type Content
- func (c *Content) AllContentTypeNames() []string
- func (c *Content) AllContentTypes() map[string]content.Creator
- func (c *Content) DeleteContent(contentType, id, status string) error
- func (c *Content) GetContent(contentType, id, status string) ([]byte, error)
- func (c *Content) GetContentCreator(name string) (content.Creator, bool)
- func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
- func (c *Content) Marshal(content any) ([]byte, error)
- func (c *Content) NewContent(contentType string, data url.Values) (string, error)
- func (c *Content) NormalizeString(s 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
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetNamespace ¶
Types ¶
type Content ¶
type Content struct { Types map[string]content.Creator Repo repository.Repository }
func (*Content) AllContentTypeNames ¶
func (*Content) DeleteContent ¶
func (*Content) GetContent ¶
func (*Content) GetContentCreator ¶
func (*Content) GetContents ¶
func (c *Content) GetContents(ids []content.Identifier) ([][]byte, error)
func (*Content) NewContent ¶
func (*Content) SortContent ¶
Click to show internal directories.
Click to hide internal directories.