app

package
v0.1.89 Latest Latest
Warning

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

Go to latest
Published: Apr 28, 2026 License: MIT Imports: 7 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
	Events   Events
}

func NewApplication

func NewApplication(
	pgconn deebee.IDatabase,
	pubSub *eeventdriven.BasePgsqlPubSubProcessor,
	examLibraryUseCase usecase.IExamLibraryUseCase,
) (Application, error)

NewApplication initializes the Grading application with its dependencies.

type Commands

type Commands struct {
	GradeQuestion command.GradeQuestionHandler
}

type Events

type Events struct {
	ExamSubmitted    event.ExamSubmittedHandler
	GradingStarted   event.GradingStartedHandler
	GradingCompleted event.GradingCompletedHandler
}

type Queries

type Queries struct {
	FindExam            query.FindExamHandler
	FindExamQuestion    query.FindExamQuestionHandler
	FindIncompleteExams query.FindIncompleteExamsHandler
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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