usecase

package
v0.0.0-...-7fad759 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Overview

Ensure to import the cache package where CacheService is defined

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewTaskUsecase

func NewTaskUsecase(taskRepository domain.TaskRepository, timeout time.Duration) domain.TaskUsecase

Types

type PriorityUseCase

type PriorityUseCase interface {
	FetchAll(ctx context.Context) ([]domain.Priority, error)
}

func NewPriorityUseCase

func NewPriorityUseCase(repo domain.PriorityRepository, cacheService cache.CacheService) PriorityUseCase

Ensure the constructor function matches the interface and implementation names

type StatusUseCase

type StatusUseCase interface {
	FetchAll(ctx context.Context) ([]domain.Status, error)
}

func NewStatusUseCase

func NewStatusUseCase(statusRepository domain.StatusRepository, cacheService cache.CacheService) StatusUseCase

Jump to

Keyboard shortcuts

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