mongodb

package
v0.0.0-...-46354e0 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMongoNoteRepository

func NewMongoNoteRepository() (model.Repository, error)

Types

type MongoNoteRepository

type MongoNoteRepository struct {
	// contains filtered or unexported fields
}

func (*MongoNoteRepository) Create

func (m *MongoNoteRepository) Create(n model.Note) error

func (*MongoNoteRepository) Delete

func (m *MongoNoteRepository) Delete(id string) error

func (*MongoNoteRepository) GetAll

func (m *MongoNoteRepository) GetAll() ([]model.Note, error)

func (*MongoNoteRepository) GetById

func (m *MongoNoteRepository) GetById(id string) (model.Note, error)

func (*MongoNoteRepository) Update

func (m *MongoNoteRepository) Update(id string, n model.Note) error

Jump to

Keyboard shortcuts

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