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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewRepository

func NewRepository(db *sql.DB) thread.Repository

Types

type Repository

type Repository struct {
	// contains filtered or unexported fields
}

func (Repository) Create

func (r Repository) Create(slugOrId string, posts []*models.Post) error

func (Repository) Details

func (r Repository) Details(thread *models.Thread) error

func (Repository) Posts

func (r Repository) Posts(thread *models.PostSearch) ([]*models.Post, error)

func (Repository) UpdateDetails

func (r Repository) UpdateDetails(thread *models.ThreadUpdate) (*models.Thread, error)

func (Repository) Vote

func (r Repository) Vote(thread *models.ThreadVoice) (*models.Thread, error)

Jump to

Keyboard shortcuts

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