Documentation ¶
Index ¶
- func NewMongoNoteRepository() (model.Repository, error)
- type MongoNoteRepository
- func (m *MongoNoteRepository) Create(n model.Note) error
- func (m *MongoNoteRepository) Delete(id string) error
- func (m *MongoNoteRepository) GetAll() ([]model.Note, error)
- func (m *MongoNoteRepository) GetById(id string) (model.Note, error)
- func (m *MongoNoteRepository) Update(id string, n model.Note) error
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) Delete ¶
func (m *MongoNoteRepository) Delete(id string) error
Click to show internal directories.
Click to hide internal directories.