Documentation ¶
Index ¶
- type ProviderRepository
- func (t *ProviderRepository) DeleteProviders(ctx context.Context, name string) error
- func (t *ProviderRepository) FindProviders(ctx context.Context) ([]entity.Provider, error)
- func (t *ProviderRepository) GetProvider(ctx context.Context, filter any) (*entity.Provider, error)
- func (t *ProviderRepository) GetProviderWithTasks(ctx context.Context, id primitive.ObjectID) (*entity.Provider, error)
- func (t *ProviderRepository) InsertProvider(ctx context.Context, provider *entity.Provider) error
- func (t *ProviderRepository) UpdateProvider(ctx context.Context, provider *entity.Provider) error
- type TaskRepository
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ProviderRepository ¶
type ProviderRepository struct {
// contains filtered or unexported fields
}
func NewProviderRepository ¶
func NewProviderRepository(db *mongodb.Mongo, collectionName string) *ProviderRepository
func (*ProviderRepository) DeleteProviders ¶
func (t *ProviderRepository) DeleteProviders(ctx context.Context, name string) error
func (*ProviderRepository) FindProviders ¶
func (*ProviderRepository) GetProvider ¶
func (*ProviderRepository) GetProviderWithTasks ¶
func (*ProviderRepository) InsertProvider ¶
func (*ProviderRepository) UpdateProvider ¶
type TaskRepository ¶
type TaskRepository struct {
// contains filtered or unexported fields
}
func NewTaskRepository ¶
func NewTaskRepository(db *mongodb.Mongo, collectionName string) *TaskRepository
func (*TaskRepository) GetTasks ¶
func (t *TaskRepository) GetTasks(ctx context.Context, opt *options.FindOptions) ([]valueobject.Task, error)
func (*TaskRepository) InsertTask ¶
func (t *TaskRepository) InsertTask(ctx context.Context, task valueobject.Task) error
Click to show internal directories.
Click to hide internal directories.