Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type NoteRepository ¶
type NoteRepository interface { CreateNote(newNote *entity.Note) error GetNoteByID(noteID string) (*entity.Note, error) GetCompletedNotes() ([]*entity.Note, error) UpdateNoteByID(updatedNote *entity.Note) error DeleteNoteByID(noteID string) error }
NoteRepository defines repository actions for resource NOTE.
func NewNoteRepository ¶
func NewNoteRepository(client *mongo.Client, database, collection string, timeout time.Duration) NoteRepository
NewNoteRepository creates new instance of noteRepository
Click to show internal directories.
Click to hide internal directories.