Documentation ¶
Index ¶
- type Bookmark
- type BookmarkRepository
- func (r BookmarkRepository) CreateBookmark(ctx context.Context, user *models.User, bm *models.Bookmark) (string, error)
- func (r BookmarkRepository) DeleteBookmark(ctx context.Context, user *models.User, id string) error
- func (r BookmarkRepository) GetBookmark(ctx context.Context, user *models.User, id string) (*models.Bookmark, error)
- func (r BookmarkRepository) GetBookmarks(ctx context.Context, user *models.User) ([]*models.Bookmark, error)
- func (r BookmarkRepository) UpdateBookmark(ctx context.Context, user *models.User, bm *models.Bookmark) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BookmarkRepository ¶
type BookmarkRepository struct {
// contains filtered or unexported fields
}
func NewBookmarkRepository ¶
func NewBookmarkRepository(db *mongo.Database, collection string) *BookmarkRepository
func (BookmarkRepository) CreateBookmark ¶
func (BookmarkRepository) DeleteBookmark ¶
func (BookmarkRepository) GetBookmark ¶
func (BookmarkRepository) GetBookmarks ¶
func (BookmarkRepository) UpdateBookmark ¶
Click to show internal directories.
Click to hide internal directories.