Documentation ¶
Index ¶
- func Create[T model.Resource](ctx context.Context, collection *mongo.Collection, model T) string
- func Delete(ctx context.Context, collection *mongo.Collection, id string)
- func GetAll[T model.Resource](ctx context.Context, collection *mongo.Collection, resources []T)
- func GetById[T model.Resource](ctx context.Context, collection *mongo.Collection, id string, res T)
- func NewCalTaskRepo(ctx context.Context, database *mongo.Database) infra.CalTaskRepo
- func NewEvictorRepo(ctx context.Context, database *mongo.Database) infra.EvictorRepo
- func NewOperatorRepo(ctx context.Context, database *mongo.Database) infra.OperatorRepo
- func NewTriggerRepo(ctx context.Context, database *mongo.Database) infra.TriggerRepo
- func NewWindowRepo(ctx context.Context, database *mongo.Database) infra.WindowsRepo
- type CalTask
- type Evictor
- type Operator
- type Trigger
- type Windows
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewCalTaskRepo ¶
func NewEvictorRepo ¶
func NewOperatorRepo ¶
func NewTriggerRepo ¶
func NewWindowRepo ¶
Types ¶
type CalTask ¶
type CalTask struct {
// contains filtered or unexported fields
}
func (*CalTask) DeleteByProcessorId ¶
Click to show internal directories.
Click to hide internal directories.