Documentation ¶
Index ¶
- type AcademicsService
- type AddCollaboratorsHandler
- type AddStudentHandler
- type AddTaskHandler
- type CoursesRepository
- func (m *CoursesRepository) AddCourse(_ context.Context, crs *course.Course) error
- func (m *CoursesRepository) CoursesNumber() int
- func (m *CoursesRepository) GetCourse(_ context.Context, courseID string) (*course.Course, error)
- func (m *CoursesRepository) UpdateCourse(ctx context.Context, courseID string, updateFn command.UpdateFunction) error
- type CreateCourseHandler
- type ExtendCourseHandler
- type RemoveCollaboratorHandler
- type RemoveStudentHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AcademicsService ¶
type AcademicsService struct {
// contains filtered or unexported fields
}
func NewAcademicsService ¶
func NewAcademicsService(teachers []string, students []string, groups []string) *AcademicsService
func (*AcademicsService) GroupExists ¶
func (m *AcademicsService) GroupExists(_ context.Context, groupID string) error
func (*AcademicsService) StudentExists ¶
func (m *AcademicsService) StudentExists(_ context.Context, studentID string) error
func (*AcademicsService) TeacherExists ¶
func (m *AcademicsService) TeacherExists(_ context.Context, teacherID string) error
type AddCollaboratorsHandler ¶
type AddCollaboratorsHandler func(ctx context.Context, cmd app.AddCollaboratorCommand) error
func (AddCollaboratorsHandler) Handle ¶
func (m AddCollaboratorsHandler) Handle(ctx context.Context, cmd app.AddCollaboratorCommand) error
type AddStudentHandler ¶
type AddStudentHandler func(ctx context.Context, cmd app.AddStudentCommand) error
func (AddStudentHandler) Handle ¶
func (m AddStudentHandler) Handle(ctx context.Context, cmd app.AddStudentCommand) error
type AddTaskHandler ¶
func (AddTaskHandler) Handle ¶
func (m AddTaskHandler) Handle(ctx context.Context, cmd app.AddTaskCommand) (int, error)
type CoursesRepository ¶
type CoursesRepository struct {
// contains filtered or unexported fields
}
func NewCoursesRepository ¶
func NewCoursesRepository(courses ...*course.Course) *CoursesRepository
func (*CoursesRepository) CoursesNumber ¶
func (m *CoursesRepository) CoursesNumber() int
func (*CoursesRepository) UpdateCourse ¶
func (m *CoursesRepository) UpdateCourse( ctx context.Context, courseID string, updateFn command.UpdateFunction, ) error
type CreateCourseHandler ¶
func (CreateCourseHandler) Handle ¶
func (m CreateCourseHandler) Handle(ctx context.Context, cmd app.CreateCourseCommand) (string, error)
type ExtendCourseHandler ¶
func (ExtendCourseHandler) Handle ¶
func (m ExtendCourseHandler) Handle(ctx context.Context, cmd app.ExtendCourseCommand) (string, error)
type RemoveCollaboratorHandler ¶
type RemoveCollaboratorHandler func(ctx context.Context, cmd app.RemoveCollaboratorCommand) error
func (RemoveCollaboratorHandler) Handle ¶
func (m RemoveCollaboratorHandler) Handle(ctx context.Context, cmd app.RemoveCollaboratorCommand) error
type RemoveStudentHandler ¶
type RemoveStudentHandler func(ctx context.Context, cmd app.RemoveStudentCommand) error
func (RemoveStudentHandler) Handle ¶
func (m RemoveStudentHandler) Handle(ctx context.Context, cmd app.RemoveStudentCommand) error
Click to show internal directories.
Click to hide internal directories.