Documentation
¶
Index ¶
Constants ¶
View Source
const CourseCommandType command.Type = "command.creating.course"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CourseCommand ¶
type CourseCommand struct {
// contains filtered or unexported fields
}
func NewCourseCommand ¶
func NewCourseCommand(id, name, duration string) CourseCommand
func (CourseCommand) Type ¶
func (receiver CourseCommand) Type() command.Type
type CourseCommandHandler ¶
type CourseCommandHandler struct {
// contains filtered or unexported fields
}
func NewCourseCommandHandler ¶
func NewCourseCommandHandler(service CourseService) CourseCommandHandler
type CourseService ¶
type CourseService struct {
// contains filtered or unexported fields
}
func NewCourseService ¶
func NewCourseService(repository domain.CourseRepository, eventBus event.Bus) CourseService
func (CourseService) Create ¶
func (receiver CourseService) Create(id, name, duration string) error
Click to show internal directories.
Click to hide internal directories.