commands

package
v0.0.0-...-358e048 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2022 License: MIT Imports: 11 Imported by: 0

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

Jump to

Keyboard shortcuts

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