Documentation ¶
Index ¶
- type ProviderService
- func (ps *ProviderService) AddProvider(ctx context.Context, provider *entity.Provider) error
- func (ps *ProviderService) DeleteProviders(ctx context.Context, name string) error
- func (ps *ProviderService) GetProviderByUrl(ctx context.Context, url string) (*entity.Provider, error)
- func (ps *ProviderService) GetProviderWithTasks(ctx context.Context, id string) (*entity.Provider, error)
- func (ps *ProviderService) GetProviders(ctx context.Context) ([]entity.Provider, error)
- func (ps *ProviderService) UpdateProvider(ctx context.Context, provider *entity.Provider) error
- type TaskService
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 (*ProviderService) DeleteProviders ¶
func (ps *ProviderService) DeleteProviders(ctx context.Context, name string) error
func (*ProviderService) GetProviderByUrl ¶
func (*ProviderService) GetProviderWithTasks ¶
func (*ProviderService) GetProviders ¶
func (*ProviderService) UpdateProvider ¶
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)
Click to show internal directories.
Click to hide internal directories.