creating

package
v0.0.0-...-1bb7b75 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2021 License: MIT Imports: 4 Imported by: 0

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

func (CourseCommandHandler) Handle

func (receiver CourseCommandHandler) Handle(command command.Command) error

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

Jump to

Keyboard shortcuts

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