finduser

package
v0.0.0-...-db6235c Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2023 License: Apache-2.0 Imports: 5 Imported by: 0

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

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

Jump to

Keyboard shortcuts

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