Documentation
¶
Index ¶
- func NewRepository(db *sql.DB) post.Repository
- type Repository
- func (r Repository) Details(id int) (*models.Post, error)
- func (r Repository) DetailsForum(id int) (*models.Forum, error)
- func (r Repository) DetailsThread(id int) (*models.Thread, error)
- func (r Repository) DetailsUser(id int) (*models.User, error)
- func (r Repository) UpdateDetails(updatePost *models.Post) (*models.Post, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRepository ¶
func NewRepository(db *sql.DB) post.Repository
Types ¶
type Repository ¶
type Repository struct {
// contains filtered or unexported fields
}
func (Repository) DetailsForum ¶
func (r Repository) DetailsForum(id int) (*models.Forum, error)
func (Repository) DetailsThread ¶
func (r Repository) DetailsThread(id int) (*models.Thread, error)
func (Repository) DetailsUser ¶
func (r Repository) DetailsUser(id int) (*models.User, error)
func (Repository) UpdateDetails ¶
Click to show internal directories.
Click to hide internal directories.