application

package
v0.0.0-...-404caef Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Commands Commands
	Queries  Queries
}

Application is based on the CQRS pattern. It is meant to be used to store all the commands and queries.

func Initialize

func Initialize(ctx context.Context) (*Application, error)

type Commands

type Commands struct {
	//CreateTodo is the CQRS command to create a new todo.
	CreateTodo handler.Handler[commands.CreateTodoCommand, *commands.CreateTodoResponse]

	// AddTodoTask is the CQRS command to add a new task to a todo.
	AddTodoTask handler.Handler[commands.AddTodoTaskCommand, *commands.AddTodoTaskResponse]
}

type Queries

type Queries struct{}

Queries is meant to be used to store all the queries. You can add queries here.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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