Versions in this module Expand all Collapse all v1 v1.1.0 Oct 3, 2022 Changes in this version + type Mongo struct + 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 struct + func (repo *Moodle) GetFiles(filesInfo []moodle.Content) ([]entity.File, error) + func (repo *Moodle) GetFilesInfo(courseId int) ([]moodle.Content, error) + type PlanDatabase interface + AddSchedules func(ctx context.Context, group string, schedules ...entity.Schedule) error + DeactivatePlan func(ctx context.Context, group string) error + GetLatestSchedule func(ctx context.Context, group string) (*entity.Schedule, error) + GetPlansInfo func(ctx context.Context) ([]entity.PlanInfo, error) + GetSchedules func(ctx context.Context, group string) ([]entity.Schedule, error) + func NewMongo(db *mongo.Database) PlanDatabase + type PlanWeb interface + GetFiles func(filesInfo []moodle.Content) ([]entity.File, error) + GetFilesInfo func(courseId int) ([]moodle.Content, error) + func NewMoodle(client *moodle.Client) PlanWeb