repository

package
v0.0.0-...-278084b Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 25, 2021 License: MIT Imports: 4 Imported by: 0

Documentation

Index

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) Details

func (r Repository) Details(id int) (*models.Post, error)

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

func (r Repository) UpdateDetails(updatePost *models.Post) (*models.Post, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL