command_handlers

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jul 27, 2023 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CommandHandler

type CommandHandler interface {
	Handle() error
}

func NewCommandHandler

func NewCommandHandler(consumer meesage_broker.Consumer, command app.Command, logger log.Logger) CommandHandler

type CommandsHandlers

type CommandsHandlers struct {
	// contains filtered or unexported fields
}

func New

func New(logger log.Logger, consumer meesage_broker.Consumer,
	signUp *command.SignUp,
	createTodoList *command.CreateTodoList,
	createTodo *command.CreateTodo,
	deleteTodoList *command.DeleteTodoList,

) (*CommandsHandlers, error)

type ConsumeCommandHandler

type ConsumeCommandHandler struct {
	// contains filtered or unexported fields
}

func (ConsumeCommandHandler) Handle

func (h ConsumeCommandHandler) Handle() error

Jump to

Keyboard shortcuts

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