Documentation ¶
Index ¶
- type NoteInMemoryRepository
- func (r *NoteInMemoryRepository) Create(note domain.Note) error
- func (r *NoteInMemoryRepository) Delete(noteUUID uuid.UUID) error
- func (r *NoteInMemoryRepository) GetAllNotes() ([]domain.Note, error)
- func (r *NoteInMemoryRepository) GetNoteByUUID(noteUUID uuid.UUID) (domain.Note, error)
- func (r *NoteInMemoryRepository) Update(noteUUID uuid.UUID, ...) error
- type NoteModel
- type NotePostgresqlRepository
- func (n NotePostgresqlRepository) Create(note domain.Note) error
- func (n NotePostgresqlRepository) Delete(noteUUID uuid.UUID) error
- func (n NotePostgresqlRepository) GetAllNotes() ([]domain.Note, error)
- func (n NotePostgresqlRepository) GetNoteByUUID(noteUUID uuid.UUID) (domain.Note, error)
- func (n NotePostgresqlRepository) Update(noteUUID uuid.UUID, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type NoteInMemoryRepository ¶
type NoteInMemoryRepository struct {
// contains filtered or unexported fields
}
func NewNoteInMemoryRepository ¶
func NewNoteInMemoryRepository() *NoteInMemoryRepository
func (*NoteInMemoryRepository) Create ¶
func (r *NoteInMemoryRepository) Create(note domain.Note) error
func (*NoteInMemoryRepository) Delete ¶
func (r *NoteInMemoryRepository) Delete(noteUUID uuid.UUID) error
func (*NoteInMemoryRepository) GetAllNotes ¶
func (r *NoteInMemoryRepository) GetAllNotes() ([]domain.Note, error)
func (*NoteInMemoryRepository) GetNoteByUUID ¶
type NoteModel ¶
type NotePostgresqlRepository ¶
type NotePostgresqlRepository struct {
// contains filtered or unexported fields
}
func NewNotePostgresqlRepository ¶
func NewNotePostgresqlRepository(db *gorm.DB) *NotePostgresqlRepository
func (NotePostgresqlRepository) Create ¶
func (n NotePostgresqlRepository) Create(note domain.Note) error
func (NotePostgresqlRepository) Delete ¶
func (n NotePostgresqlRepository) Delete(noteUUID uuid.UUID) error
func (NotePostgresqlRepository) GetAllNotes ¶
func (n NotePostgresqlRepository) GetAllNotes() ([]domain.Note, error)
func (NotePostgresqlRepository) GetNoteByUUID ¶
Click to show internal directories.
Click to hide internal directories.