command

package
v0.0.0-...-4b23463 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 17, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddCollaboratorHandler

type AddCollaboratorHandler struct {
	// contains filtered or unexported fields
}

func NewAddCollaboratorHandler

func NewAddCollaboratorHandler(repository coursesRepository, service academicsService) AddCollaboratorHandler

func (AddCollaboratorHandler) Handle

type AddStudentHandler

type AddStudentHandler struct {
	// contains filtered or unexported fields
}

func NewAddStudentHandler

func NewAddStudentHandler(repository coursesRepository, service academicsService) AddStudentHandler

func (AddStudentHandler) Handle

type AddTaskHandler

type AddTaskHandler struct {
	// contains filtered or unexported fields
}

func NewAddTaskHandler

func NewAddTaskHandler(repository coursesRepository) AddTaskHandler

func (AddTaskHandler) Handle

func (h AddTaskHandler) Handle(ctx context.Context, cmd app.AddTaskCommand) (taskNumber int, err error)

type CreateCourseHandler

type CreateCourseHandler struct {
	// contains filtered or unexported fields
}

func NewCreateCourseHandler

func NewCreateCourseHandler(repository coursesRepository) CreateCourseHandler

func (CreateCourseHandler) Handle

func (h CreateCourseHandler) Handle(ctx context.Context, cmd app.CreateCourseCommand) (courseID string, err error)

type ExtendCourseHandler

type ExtendCourseHandler struct {
	// contains filtered or unexported fields
}

func NewExtendCourseHandler

func NewExtendCourseHandler(repository coursesRepository) ExtendCourseHandler

func (ExtendCourseHandler) Handle

func (h ExtendCourseHandler) Handle(ctx context.Context, cmd app.ExtendCourseCommand) (extendedCourseID string, err error)

type RemoveCollaboratorHandler

type RemoveCollaboratorHandler struct {
	// contains filtered or unexported fields
}

func NewRemoveCollaboratorHandler

func NewRemoveCollaboratorHandler(repository coursesRepository) RemoveCollaboratorHandler

func (RemoveCollaboratorHandler) Handle

type RemoveStudentHandler

type RemoveStudentHandler struct {
	// contains filtered or unexported fields
}

func NewRemoveStudentHandler

func NewRemoveStudentHandler(repository coursesRepository) RemoveStudentHandler

func (RemoveStudentHandler) Handle

type UpdateFunction

type UpdateFunction func(ctx context.Context, crs *course.Course) (*course.Course, error)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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