thread

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller struct {
	Interactor Interactor
	Logger     logging.Logger
}

func (*Controller) CreateOne

func (s *Controller) CreateOne(c *gin.Context)

func (*Controller) DeleteById

func (s *Controller) DeleteById(c *gin.Context)

func (*Controller) FindAll

func (s *Controller) FindAll(c *gin.Context)

func (*Controller) RegisterRoutes

func (s *Controller) RegisterRoutes(router *gin.RouterGroup)

type Interactor

type Interactor interface {
	FindAll() ([]core.Thread, error)
	CreateOne(thread core.Thread) (core.Thread, error)
	DeleteById(id uuid.UUID) error
}

type Repository

type Repository struct {
	DB     api.PgxConn
	Logger logging.Logger
}

func (*Repository) CreateOne

func (r *Repository) CreateOne(thread core.Thread) (core.Thread, error)

func (*Repository) DeleteById

func (r *Repository) DeleteById(id uuid.UUID) error

func (*Repository) FindAll

func (r *Repository) FindAll() ([]core.Thread, error)

Jump to

Keyboard shortcuts

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