service

package
v0.0.0-...-0e50a25 Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2024 License: Apache-2.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 ProviderService

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

func NewProviderService

func NewProviderService(providerRepo repository.IProviderRepository) *ProviderService

func (*ProviderService) AddProvider

func (ps *ProviderService) AddProvider(ctx context.Context, provider *entity.Provider) error

func (*ProviderService) DeleteProviders

func (ps *ProviderService) DeleteProviders(ctx context.Context, name string) error

func (*ProviderService) GetProviderByUrl

func (ps *ProviderService) GetProviderByUrl(ctx context.Context, url string) (*entity.Provider, error)

func (*ProviderService) GetProviderWithTasks

func (ps *ProviderService) GetProviderWithTasks(ctx context.Context, id string) (*entity.Provider, error)

func (*ProviderService) GetProviders

func (ps *ProviderService) GetProviders(ctx context.Context) ([]entity.Provider, error)

func (*ProviderService) UpdateProvider

func (ps *ProviderService) UpdateProvider(ctx context.Context, provider *entity.Provider) error

type TaskService

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

func NewTaskService

func NewTaskService(repo repository.ITaskRepository) *TaskService

func (*TaskService) AddTask

func (ts *TaskService) AddTask(ctx context.Context, task *valueobject.Task) error

func (*TaskService) GetTasks

func (ts *TaskService) GetTasks(ctx context.Context) ([]valueobject.Task, error)

Jump to

Keyboard shortcuts

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