thread

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Vote(w http.ResponseWriter, r *http.Request)
	Details(w http.ResponseWriter, r *http.Request)
	UpdateDetails(w http.ResponseWriter, r *http.Request)
	Create(w http.ResponseWriter, r *http.Request)
	Posts(w http.ResponseWriter, r *http.Request)
}

type Repository

type Repository interface {
	Vote(thread *models.ThreadVoice) (*models.Thread, error)
	Details(thread *models.Thread) error
	UpdateDetails(thread *models.ThreadUpdate) (*models.Thread, error)
	Create(slugOrId string, posts []*models.Post) error
	Posts(thread *models.PostSearch) ([]*models.Post, error)
}

type UseCase

type UseCase interface {
	Vote(thread *models.ThreadVoice) (*models.Thread, error)
	Details(thread *models.Thread) error
	Posts(thread *models.PostSearch) ([]*models.Post, error)
	UpdateDetails(thread *models.ThreadUpdate) (*models.Thread, error)
	Create(slugOrId string, posts []*models.Post) error
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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