Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AuthorCmds ¶
type AuthorCmds struct {
CreateAuthor CreateAuthorCmdHandler
}
func NewAuthorCmds ¶
func NewAuthorCmds(createAuthor CreateAuthorCmdHandler) *AuthorCmds
type CreateAuthorCmd ¶
type CreateAuthorCmd struct {
CreateDto *dto.CreateAuthorDto
}
func NewCreateAuthorCmd ¶
func NewCreateAuthorCmd(dto *dto.CreateAuthorDto) *CreateAuthorCmd
type CreateAuthorCmdHandler ¶
type CreateAuthorCmdHandler interface {
Handle(ctx context.Context, cmd *CreateAuthorCmd) error
}
type CreateAuthorHandler ¶
type CreateAuthorHandler struct {
// contains filtered or unexported fields
}
func NewCreateAuthorHandler ¶
func NewCreateAuthorHandler( log logger.Logger, cfg *config.Config, kafkaProducer kafkaClient.Producer, ) *CreateAuthorHandler
func (*CreateAuthorHandler) Handle ¶
func (c *CreateAuthorHandler) Handle(ctx context.Context, cmd *CreateAuthorCmd) error
Click to show internal directories.
Click to hide internal directories.