Documentation ¶
Index ¶
- type Content
- type Service
- func (contentConfig *Service) AddContent(id string, payload *Content) error
- func (contentConfig *Service) DeleteContent(id string) error
- func (contentConfig *Service) GetContentByID(id string) (*Content, error)
- func (contentConfig *Service) ListContents() ([]*Content, error)
- func (contentConfig *Service) UpdateContent(id string, payload *Content) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func NewContentService ¶
func (*Service) AddContent ¶
AddContent adds or replaces a new content entity to the store
func (*Service) DeleteContent ¶
DeleteContent deletes a single content from the store
func (*Service) GetContentByID ¶
GetContentByID returns a single content by its id
func (*Service) ListContents ¶
ListContents returns all content entities, in random order
Click to show internal directories.
Click to hide internal directories.