Documentation ¶
Index ¶
- type DocumentsRepository
- func (d *DocumentsRepository) Create(document models.Document) (string, error)
- func (d *DocumentsRepository) Delete(id string) (int64, error)
- func (d *DocumentsRepository) GetAll() ([]models.Document, error)
- func (d *DocumentsRepository) GetById(id string) (models.Document, error)
- func (d *DocumentsRepository) Update(id string, document models.Document) (int64, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DocumentsRepository ¶
type DocumentsRepository struct {
Collection *mongo.Collection
}
func (*DocumentsRepository) Create ¶
func (d *DocumentsRepository) Create(document models.Document) (string, error)
func (*DocumentsRepository) GetAll ¶
func (d *DocumentsRepository) GetAll() ([]models.Document, error)
Click to show internal directories.
Click to hide internal directories.