forum

package
v0.0.0-...-372bfc1 Latest Latest
Warning

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

Go to latest
Published: May 9, 2022 License: MIT Imports: 1 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 {
	Create(forum *model.Forum) error
	Find(slug string) (*model.Forum, error)
	FindForumUsers(forumObj *model.Forum, descValue bool, limitValue string, sinceValue string) ([]model.User, error)
	FindForumThreads(forumSlug string, limitValue string, descValue bool, sinceValue string) ([]model.Thread, error)
}

type Usecase

type Usecase interface {
	CreateForum(*model.Forum) (*model.Forum, int, error)
	Find(slug string) (*model.Forum, error)
	CreateThread(string, *model.NewThread) (*model.Thread, int, error)
	GetUsersByForum(slug string, limitValue string, descValue bool, sinceValue string) ([]model.User, int, error)
	GetThreadsByForum(forumSlug string, limitValue string, descValue bool, sinceValue string) ([]model.Thread, int, error)
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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