Documentation ¶
Index ¶
Constants ¶
View Source
const COMMAND_TYPE commandbus.Type = "command.finding.user"
Variables ¶
This section is empty.
Functions ¶
func NewCommand ¶
func NewCommand(id string) commandbus.Command
Types ¶
type Command ¶
type Command struct {
// contains filtered or unexported fields
}
func (Command) Type ¶
func (c Command) Type() commandbus.Type
type CommandHandler ¶
type CommandHandler struct {
Service Service
}
func NewCommandHandler ¶
func NewCommandHandler(s Service) *CommandHandler
func (*CommandHandler) Handle ¶
func (h *CommandHandler) Handle(ctx *context.Context, cmd commandbus.Command) (commandbus.Response, errors.App)
type Service ¶
type Service struct {
UserRepository user.UserRepository
}
func NewService ¶
func NewService(r user.UserRepository) *Service
type UserResponse ¶
type UserResponse struct { Id string FirstName string LastName string Email string CreatedAt string }
func NewUserResponse ¶
func NewUserResponse(u domain.User) UserResponse
Click to show internal directories.
Click to hide internal directories.