repositories

package
v0.0.0-...-6e77faf Latest Latest
Warning

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

Go to latest
Published: Jul 12, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContentRepository

type ContentRepository struct {
	DB *mongo.Database
}

func (*ContentRepository) CreateContent

func (r *ContentRepository) CreateContent(coll string, content *models.Content) (string, error)

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

func (r *ContentRepository) GetClass(coll string, class string) ([]models.Content, 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)

Jump to

Keyboard shortcuts

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