Versions in this module Expand all Collapse all v1 v1.0.0 Jul 8, 2023 Changes in this version + type Controller struct + Interactor Interactor + Logger logging.Logger + func (s *Controller) CreateOne(c *gin.Context) + func (s *Controller) DeleteById(c *gin.Context) + func (s *Controller) FindAll(c *gin.Context) + func (s *Controller) RegisterRoutes(router *gin.RouterGroup) + type Interactor interface + CreateOne func(thread core.Thread) (core.Thread, error) + DeleteById func(id uuid.UUID) error + FindAll func() ([]core.Thread, error) + type Repository struct + DB api.PgxConn + Logger logging.Logger + func (r *Repository) CreateOne(thread core.Thread) (core.Thread, error) + func (r *Repository) DeleteById(id uuid.UUID) error + func (r *Repository) FindAll() ([]core.Thread, error)