repository

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: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type IProviderRepository

type IProviderRepository interface {
	InsertProvider(ctx context.Context, provider *entity.Provider) error
	UpdateProvider(ctx context.Context, provider *entity.Provider) error
	FindProviders(ctx context.Context) ([]entity.Provider, error)
	DeleteProviders(ctx context.Context, name string) error
	GetProvider(ctx context.Context, filter any) (*entity.Provider, error)
	GetProviderWithTasks(ctx context.Context, id primitive.ObjectID) (*entity.Provider, error)
}

type ITaskRepository

type ITaskRepository interface {
	InsertTask(ctx context.Context, task valueobject.Task) error
	GetTasks(ctx context.Context, opt *options.FindOptions) ([]valueobject.Task, error)
}

Jump to

Keyboard shortcuts

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