Documentation
¶
Index ¶
- type Bookmark
- type BookmarkRepository
- func (r BookmarkRepository) CreateBookmark(ctx context.Context, user *models.User, bm *models.Bookmark) error
- func (r BookmarkRepository) DeleteBookmark(ctx context.Context, user *models.User, id string) error
- func (r BookmarkRepository) GetBookmarks(ctx context.Context, user *models.User) ([]*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) GetBookmarks ¶
Click to show internal directories.
Click to hide internal directories.