Documentation
¶
Index ¶
- type Mongo
- func (repo *Mongo) AddSchedules(ctx context.Context, group string, schedules ...entity.Schedule) error
- func (repo *Mongo) DeactivatePlan(ctx context.Context, group string) error
- func (repo *Mongo) GetLatestSchedule(ctx context.Context, group string) (*entity.Schedule, error)
- func (repo *Mongo) GetPlansInfo(ctx context.Context) ([]entity.PlanInfo, error)
- func (repo *Mongo) GetSchedules(ctx context.Context, group string) ([]entity.Schedule, error)
- type Moodle
- type PlanDatabase
- type PlanWeb
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Mongo ¶
type Mongo struct {
// contains filtered or unexported fields
}
func (*Mongo) AddSchedules ¶
func (*Mongo) DeactivatePlan ¶
func (*Mongo) GetLatestSchedule ¶
func (*Mongo) GetPlansInfo ¶
type Moodle ¶
type Moodle struct {
// contains filtered or unexported fields
}
type PlanDatabase ¶
type PlanDatabase interface { AddSchedules(ctx context.Context, group string, schedules ...entity.Schedule) error GetSchedules(ctx context.Context, group string) ([]entity.Schedule, error) GetLatestSchedule(ctx context.Context, group string) (*entity.Schedule, error) GetPlansInfo(ctx context.Context) ([]entity.PlanInfo, error) DeactivatePlan(ctx context.Context, group string) error }
func NewMongo ¶
func NewMongo(db *mongo.Database) PlanDatabase
Click to show internal directories.
Click to hide internal directories.