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) }
Click to show internal directories.
Click to hide internal directories.