commands

package
v0.0.0-...-ff4c41b Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CheckInCommandsFailedToFetchPerson CommandErrorCode = 30001
	CheckInCommandsErrorPersonNotFound CommandErrorCode = 30002
	CheckInCommandsFailedToFetchEvent  CommandErrorCode = 30003
	CheckInCommandsErrorEventNotFound  CommandErrorCode = 30004
	CheckInCommandsFailedToCheckIn     CommandErrorCode = 30005
)
View Source
const (
	CreateEventCommandsErrorAppError CommandErrorCode = 30101
)
View Source
const (
	FetchSessionErrorFailedToCreateSession CommandErrorCode = 30201
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CheckInCommands

type CheckInCommands struct {
	Input dto.CheckInInput
}

func (CheckInCommands) Execute

func (cmd CheckInCommands) Execute(ctx CommandContext) CommandExecutionResult[[]dto.CheckInEvent]

type CommandContext

type CommandContext interface {
	EventCheckInRepository() repositories.EventCheckInRepository
	ChurchEventRepository() repositories.ChurchEventRepository
	PersonRepository() repositories.PersonRepository
	ChurchEventSessionRepository() repositories.ChurchEventSessionRepository
}

type CreateChurchEventSessionCommand

type CreateChurchEventSessionCommand struct {
	EventID string
}

func (CreateChurchEventSessionCommand) Execute

func (cmd CreateChurchEventSessionCommand) Execute(ctx CommandContext) CommandExecutionResult[dto.ChurchEventSession]

type CreateEventCommands

type CreateEventCommands struct {
	Input dto.ChurchEvent
}

func (CreateEventCommands) Execute

func (c CreateEventCommands) Execute(ctx CommandContext) CommandExecutionResult[dto.ChurchEvent]

Jump to

Keyboard shortcuts

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