Documentation ¶
Index ¶
- type DB
- func (m *DB) AuthenticateUser(email, password string) (*models.User, error)
- func (d *DB) Close()
- func (d *DB) Connect(dialect string, dsn string) error
- func (m *DB) CreateIfNotExists(name string) (*models.Tag, error)
- func (m *DB) GetBookmark(id uint, user *models.User) (*models.Bookmark, error)
- func (m *DB) GetBookmarks(user *models.User) ([]*models.Bookmark, error)
- func (m *DB) GetTag(id uint) (*models.Tag, error)
- func (m *DB) GetTagByName(name string, user *models.User) (*models.Tag, error)
- func (m *DB) GetTags(*models.User) ([]*models.Tag, error)
- func (m *DB) GetUser(id uint) (*models.User, error)
- func (m *DB) InsertBookmark(*models.Bookmark) error
- func (m *DB) InsertTag(tag *models.Tag) (uint, error)
- func (m *DB) InsertUser(name, email, password string) error
- func (m *DB) LatestBookmarks() ([]*models.Bookmark, error)
- func (d *DB) Migrate() error
- func (m *DB) UpdateBookmark(*models.Bookmark) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DB ¶
type DB struct{}
func (*DB) AuthenticateUser ¶
func (*DB) GetBookmark ¶
func (*DB) GetTagByName ¶
func (*DB) InsertUser ¶
Click to show internal directories.
Click to hide internal directories.