thread

package
v0.0.0-...-a7107f1 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2020 License: BSD-3-Clause Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Repository

type Repository interface {
	GetByID(id int32) (models.Thread, error)
	GetBySlug(slug string) (models.Thread, error)

	UpdateByID(thread models.Thread) (models.Thread, error)
	UpdateBySlug(thread models.Thread) (models.Thread, error)

	VoteByID(id int32, vote models.Vote) (models.Thread, error)
	VoteBySlug(slug string, vote models.Vote) (models.Thread, error)

	Create(thread models.Thread) (models.Thread, error)
	GetThreadsByForumSlug(forumSlug string, since *time.Time, desc bool, limit int32) (models.Threads, error)
}

type UseCase

type UseCase interface {
	GetBySlugOrID(slugOrID string) (models.Thread, error)
	VoteBySlugOrID(slugOrID string, vote models.Vote) (models.Thread, error)
	Create(thread models.Thread) (models.Thread, error)
	UpdateBySlugOrID(slugOrID string, thread models.Thread) (models.Thread, error)
	GetThreadsByForumSlug(forumSlug, since, desc, limit string) (models.Threads, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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