Documentation
¶
Index ¶
- type ContentRepository
- func (r *ContentRepository) CreateContent(coll string, content *models.Content) (string, error)
- func (r *ContentRepository) DeleteClass(coll string, class string) ([]string, error)
- func (r *ContentRepository) DeleteCollection(coll string) ([]string, error)
- func (r *ContentRepository) DeleteContent(coll string, id string) (string, error)
- func (r *ContentRepository) GetClass(coll string, class string) ([]models.Content, error)
- func (r *ContentRepository) GetCollection(coll string) ([]models.Content, error)
- func (r *ContentRepository) GetContent(coll string, id string) (*models.ReadContent, error)
- func (r *ContentRepository) UpdateContent(coll string, id string, updatedContent *models.UpdateContent) (string, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ContentRepository ¶
func (*ContentRepository) CreateContent ¶
func (*ContentRepository) DeleteClass ¶
func (r *ContentRepository) DeleteClass(coll string, class string) ([]string, error)
func (*ContentRepository) DeleteCollection ¶
func (r *ContentRepository) DeleteCollection(coll string) ([]string, error)
func (*ContentRepository) DeleteContent ¶
func (r *ContentRepository) DeleteContent(coll string, id string) (string, error)
func (*ContentRepository) GetCollection ¶
func (r *ContentRepository) GetCollection(coll string) ([]models.Content, error)
func (*ContentRepository) GetContent ¶
func (r *ContentRepository) GetContent(coll string, id string) (*models.ReadContent, error)
func (*ContentRepository) UpdateContent ¶
func (r *ContentRepository) UpdateContent(coll string, id string, updatedContent *models.UpdateContent) (string, error)
Click to show internal directories.
Click to hide internal directories.