note

package
v0.0.0-...-df5917f Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2024 License: MIT Imports: 4 Imported by: 0

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.

Jump to

Keyboard shortcuts

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