repository

package
v0.0.0-...-a8c180d Latest Latest
Warning

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

Go to latest
Published: Jan 3, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

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

func (d *DocumentsRepository) Delete(id string) (int64, error)

func (*DocumentsRepository) GetAll

func (d *DocumentsRepository) GetAll() ([]models.Document, error)

func (*DocumentsRepository) GetById

func (d *DocumentsRepository) GetById(id string) (models.Document, error)

func (*DocumentsRepository) Update

func (d *DocumentsRepository) Update(id string, document models.Document) (int64, error)

Jump to

Keyboard shortcuts

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