Documentation ¶
Index ¶
- type Store
- func (s *Store) Close(ctx context.Context) error
- func (s *Store) CreateNote(note models.Note) error
- func (s *Store) CreateUser(user models.User) error
- func (s *Store) DeleteNoteById(id primitive.ObjectID) error
- func (s *Store) DeleteUserById(id primitive.ObjectID) error
- func (s *Store) GetNoteById(id primitive.ObjectID) ([]models.Note, error)
- func (s *Store) GetNotesByAuthor(author string) ([]models.Note, error)
- func (s *Store) GetUsersByLogin(login string) ([]models.User, error)
- func (s *Store) Open() (context.Context, error)
- func (s *Store) UpdateNoteById(note models.Note) error
- func (s *Store) UpdateUserById(user models.User) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
func (*Store) GetNoteById ¶
func (*Store) GetNotesByAuthor ¶
func (*Store) GetUsersByLogin ¶
Click to show internal directories.
Click to hide internal directories.