application

package
v0.0.0-...-57fdbbf Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ContactCreatedEventHandlerDefinition = di.Def{
	Name:  "contact-event-created-handler",
	Scope: di.App,
	Build: func(ctn di.Container) (interface{}, error) {
		return event.ContactCreatedEventHandler{
			Mailer: ctn.Get("mailer").(mailer.Mailer),
			Logger: ctn.Get("logger").(logger.ILogger),
		}, nil
	},
}

ContactCreatedEventHandlerDefinition ContactCreatedEventHandlerDefinition

View Source
var CreateContactCommandHandlerDefinition = di.Def{
	Name:  "create-contact-command-handler",
	Scope: di.App,
	Build: func(ctn di.Container) (interface{}, error) {
		return command.CreateContactCommandHandler{
			ContactFactory:             &entity.Contact{},
			ContactRepository:          ctn.Get("contact-repository").(repository.ContactRepository),
			ContactCreatedEventHandler: ctn.Get("contact-event-created-handler").(event.ContactCreatedEventHandler),
			Logger:                     ctn.Get("logger").(logger.ILogger),
		}, nil
	},
}

CreateContactCommandHandlerDefinition CreateContactCommandHandlerDefinition

View Source
var ListTechnoQueryHandlerDefinition = di.Def{
	Name:  "list-techno-query-handler",
	Scope: di.App,
	Build: func(ctn di.Container) (interface{}, error) {
		return query.ListTechnoQueryHandler{
			TechnoRepository: ctn.Get("techno-repository").(repository.TechnoRepository),
		}, nil
	},
}

ListTechnoQueryHandlerDefinition ListTechnoQueryHandlerDefinition

Functions

This section is empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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