task

package
v0.0.0-...-ecc908a Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2025 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Setup

func Setup(app *bootstrap.Application, e *echo.Echo)

Types

type Handler

type Handler struct {
	// contains filtered or unexported fields
}

func New

func New(
	trc contract.Tracer,

	authIntr *authusecase.Interactor,
	taskIntr *taskusecase.Interactor,
) *Handler

func (*Handler) Create

func (h *Handler) Create(c echo.Context) error

func (*Handler) SetRoutes

func (h *Handler) SetRoutes(e *echo.Echo)

func (*Handler) Tasks

func (h *Handler) Tasks(c echo.Context) error

type Interactor

type Interactor interface {
	Create(ctx context.Context, req task.CreateRequest) (task.CreateResponse, error)
	GetAllByUserID(ctx context.Context, req task.GetAllByUserIDRequest) (task.GetByUserIDResponse, error)
}

Jump to

Keyboard shortcuts

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