Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface {
// CreateNote create a new note
CreateNote(ctx context.Context, note *entities.Note) (*entities.Note, error)
// GetNote retrieves a note by id
GetNote(ctx context.Context, id uuid.UUID) (*entities.Note, error)
// UpdateNote updates a note by id
UpdateNote(ctx context.Context, note *entities.Note) (*entities.Note, error)
// DeleteNote deletes a note by id
DeleteNote(ctx context.Context, id uuid.UUID) error
// AllNotes retrieves a list of notes
AllNotes(ctx context.Context, pq *utils.PaginationQuery) (*entities.AllNote, error)
}
Note Repository
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock is a generated GoMock package.
|
Package mock is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.