Documentation ¶
Index ¶
- type Service
- func (s Service) Clear() error
- func (s Service) CreateForum(nf NewForum) (Forum, error)
- func (s Service) CreatePosts(slugOrId string, posts []Post) ([]Post, error)
- func (s Service) CreateThread(t Thread) (Thread, error)
- func (s Service) CreateUser(u User) ([]User, error)
- func (s Service) CreateVote(slugOrID string, v Vote) (Thread, error)
- func (s Service) GetForum(slug string) (Forum, error)
- func (s Service) GetPostAccount(id int64, related []string) (PostAccount, error)
- func (s Service) GetPosts(slugOrID string, lim int64, since, sort string, desc bool) ([]Post, error)
- func (s Service) GetThreadById(id int64) (Thread, error)
- func (s Service) GetThreadBySlug(slug string) (Thread, error)
- func (s Service) GetThreads(forum string, limit int64, since string, desc bool) ([]Thread, error)
- func (s Service) GetUser(nickname string) (User, error)
- func (s Service) GetUsersByForum(forum string, limit int64, since string, desc bool) ([]User, error)
- func (s Service) Status() (Status, error)
- func (s Service) UpdatePost(id int64, p Post) (Post, error)
- func (s Service) UpdateThread(t Thread) (Thread, error)
- func (s Service) UpdateUser(u User) (User, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
Repository forum.RepositoryInterface
}
func (Service) CreateForum ¶
func (Service) CreatePosts ¶
func (Service) CreateThread ¶
func (Service) CreateUser ¶
func (Service) CreateVote ¶
func (Service) GetPostAccount ¶
func (Service) GetThreadById ¶
func (Service) GetThreadBySlug ¶
func (Service) GetThreads ¶
func (Service) GetUsersByForum ¶
func (Service) UpdatePost ¶
func (Service) UpdateThread ¶
func (Service) UpdateUser ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.