student

package
v0.0.0-...-f40d0ba Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2021 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	RegisterAttendanceCommand eventhorizon.CommandType = "RegisterAttendance"
	CreateAttendanceCommand   eventhorizon.CommandType = "CreateAttendance"
	DeleteAttendanceCommand   eventhorizon.CommandType = "DeleteAttendance"
	ConfirmAttendanceCommand  eventhorizon.CommandType = "ConfirmAttendance"
	CancelAttendanceCommand   eventhorizon.CommandType = "CancelAttendance"
	UpdateAttendanceCommand   eventhorizon.CommandType = "UpdateAttendance"
)
View Source
const (
	CreateCourseCommand eventhorizon.CommandType = "CreateCourse"
	DeleteCourseCommand eventhorizon.CommandType = "DeleteCourse"
	UpdateCourseCommand eventhorizon.CommandType = "UpdateCourse"
)
View Source
const (
	CreateGradeCommand eventhorizon.CommandType = "CreateGrade"
	DeleteGradeCommand eventhorizon.CommandType = "DeleteGrade"
	UpdateGradeCommand eventhorizon.CommandType = "UpdateGrade"
)
View Source
const (
	CreateGroupCommand eventhorizon.CommandType = "CreateGroup"
	DeleteGroupCommand eventhorizon.CommandType = "DeleteGroup"
	UpdateGroupCommand eventhorizon.CommandType = "UpdateGroup"
)
View Source
const (
	CreateSchoolApplicationCommand eventhorizon.CommandType = "CreateSchoolApplication"
	DeleteSchoolApplicationCommand eventhorizon.CommandType = "DeleteSchoolApplication"
	UpdateSchoolApplicationCommand eventhorizon.CommandType = "UpdateSchoolApplication"
)
View Source
const (
	CreateSchoolYearCommand eventhorizon.CommandType = "CreateSchoolYear"
	DeleteSchoolYearCommand eventhorizon.CommandType = "DeleteSchoolYear"
	UpdateSchoolYearCommand eventhorizon.CommandType = "UpdateSchoolYear"
)
View Source
const (
	AttendanceRegisteredEvent eventhorizon.EventType = "AttendanceRegistered"
	AttendanceCreatedEvent    eventhorizon.EventType = "AttendanceCreated"
	AttendanceDeletedEvent    eventhorizon.EventType = "AttendanceDeleted"
	AttendanceConfirmedEvent  eventhorizon.EventType = "AttendanceConfirmed"
	AttendanceCanceledEvent   eventhorizon.EventType = "AttendanceCanceled"
	AttendanceUpdatedEvent    eventhorizon.EventType = "AttendanceUpdated"
)
View Source
const (
	CourseCreatedEvent eventhorizon.EventType = "CourseCreated"
	CourseDeletedEvent eventhorizon.EventType = "CourseDeleted"
	CourseUpdatedEvent eventhorizon.EventType = "CourseUpdated"
)
View Source
const (
	GradeCreatedEvent eventhorizon.EventType = "GradeCreated"
	GradeDeletedEvent eventhorizon.EventType = "GradeDeleted"
	GradeUpdatedEvent eventhorizon.EventType = "GradeUpdated"
)
View Source
const (
	GroupCreatedEvent eventhorizon.EventType = "GroupCreated"
	GroupDeletedEvent eventhorizon.EventType = "GroupDeleted"
	GroupUpdatedEvent eventhorizon.EventType = "GroupUpdated"
)
View Source
const (
	SchoolApplicationCreatedEvent eventhorizon.EventType = "SchoolApplicationCreated"
	SchoolApplicationDeletedEvent eventhorizon.EventType = "SchoolApplicationDeleted"
	SchoolApplicationUpdatedEvent eventhorizon.EventType = "SchoolApplicationUpdated"
)
View Source
const (
	SchoolYearCreatedEvent eventhorizon.EventType = "SchoolYearCreated"
	SchoolYearDeletedEvent eventhorizon.EventType = "SchoolYearDeleted"
	SchoolYearUpdatedEvent eventhorizon.EventType = "SchoolYearUpdated"
)
View Source
const AttendanceAggregateType eventhorizon.AggregateType = "Attendance"
View Source
const CourseAggregateType eventhorizon.AggregateType = "Course"
View Source
const GradeAggregateType eventhorizon.AggregateType = "Grade"
View Source
const GroupAggregateType eventhorizon.AggregateType = "Group"
View Source
const SchoolApplicationAggregateType eventhorizon.AggregateType = "SchoolApplication"
View Source
const SchoolYearAggregateType eventhorizon.AggregateType = "SchoolYear"

Variables

This section is empty.

Functions

func AttendanceCommandTypes

func AttendanceCommandTypes() *attendanceCommandTypes

func AttendanceEventTypes

func AttendanceEventTypes() *attendanceEventTypes

func AttendanceStates

func AttendanceStates() *attendanceStates

func CourseCommandTypes

func CourseCommandTypes() *courseCommandTypes

func CourseEventTypes

func CourseEventTypes() *courseEventTypes

func GradeCommandTypes

func GradeCommandTypes() *gradeCommandTypes

func GradeEventTypes

func GradeEventTypes() *gradeEventTypes

func GroupCategorys

func GroupCategorys() *groupCategorys

func GroupCommandTypes

func GroupCommandTypes() *groupCommandTypes

func GroupEventTypes

func GroupEventTypes() *groupEventTypes

func SchoolApplicationCommandTypes

func SchoolApplicationCommandTypes() *schoolApplicationCommandTypes

func SchoolApplicationEventTypes

func SchoolApplicationEventTypes() *schoolApplicationEventTypes

func SchoolYearCommandTypes

func SchoolYearCommandTypes() *schoolYearCommandTypes

func SchoolYearEventTypes

func SchoolYearEventTypes() *schoolYearEventTypes

Types

type Attendance

type Attendance struct {
	Student *person.Profile  `json:"student" eh:"optional"`
	Date    *time.Time       `json:"date" eh:"optional"`
	Course  *Course          `json:"course" eh:"optional"`
	Hours   int              `json:"hours" eh:"optional"`
	State   *AttendanceState `json:"state" eh:"optional"`
	Token   string           `json:"token" eh:"optional"`
	Id      uuid.UUID        `json:"id" eh:"optional"`
}

func NewAttendance

func NewAttendance() (ret *Attendance)

func NewAttendanceByPropNames

func NewAttendanceByPropNames(intSalt int) (ret *Attendance)

func NewAttendancesByPropNames

func NewAttendancesByPropNames(count int) []*Attendance

func (*Attendance) EntityID

func (o *Attendance) EntityID() uuid.UUID

type AttendanceAggregateInitializer

type AttendanceAggregateInitializer struct {
	*eh.AggregateInitializer
	*AttendanceCommandHandler
	*AttendanceEventHandler
	ProjectorHandler *AttendanceEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewAttendanceAggregateInitializer

func NewAttendanceAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *AttendanceAggregateInitializer)

type AttendanceCanceled

type AttendanceCanceled struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type AttendanceCli

type AttendanceCli struct {
}

func NewAttendanceCli

func NewAttendanceCli() (ret *AttendanceCli)

type AttendanceClient

type AttendanceClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewAttendanceClient

func NewAttendanceClient(url string, client *http.Client) (ret *AttendanceClient)

func (*AttendanceClient) Create

func (o *AttendanceClient) Create(items []*Attendance) (err error)

func (*AttendanceClient) ImportJSON

func (o *AttendanceClient) ImportJSON(fileJSON string) (err error)

func (*AttendanceClient) ReadFileJSON

func (o *AttendanceClient) ReadFileJSON(fileJSON string) (ret []*Attendance, err error)

type AttendanceCommandHandler

type AttendanceCommandHandler struct {
	RegisterHandler func(*RegisterAttendance, *Attendance, eh.AggregateStoreEvent) (err error) `json:"registerHandler" eh:"optional"`
	CreateHandler   func(*CreateAttendance, *Attendance, eh.AggregateStoreEvent) (err error)   `json:"createHandler" eh:"optional"`
	DeleteHandler   func(*DeleteAttendance, *Attendance, eh.AggregateStoreEvent) (err error)   `json:"deleteHandler" eh:"optional"`
	ConfirmHandler  func(*ConfirmAttendance, *Attendance, eh.AggregateStoreEvent) (err error)  `json:"confirmHandler" eh:"optional"`
	CancelHandler   func(*CancelAttendance, *Attendance, eh.AggregateStoreEvent) (err error)   `json:"cancelHandler" eh:"optional"`
	UpdateHandler   func(*UpdateAttendance, *Attendance, eh.AggregateStoreEvent) (err error)   `json:"updateHandler" eh:"optional"`
}

func (*AttendanceCommandHandler) AddCancelPreparer

func (o *AttendanceCommandHandler) AddCancelPreparer(preparer func(*CancelAttendance, *Attendance) (err error))

func (*AttendanceCommandHandler) AddConfirmPreparer

func (o *AttendanceCommandHandler) AddConfirmPreparer(preparer func(*ConfirmAttendance, *Attendance) (err error))

func (*AttendanceCommandHandler) AddCreatePreparer

func (o *AttendanceCommandHandler) AddCreatePreparer(preparer func(*CreateAttendance, *Attendance) (err error))

func (*AttendanceCommandHandler) AddDeletePreparer

func (o *AttendanceCommandHandler) AddDeletePreparer(preparer func(*DeleteAttendance, *Attendance) (err error))

func (*AttendanceCommandHandler) AddRegisterPreparer

func (o *AttendanceCommandHandler) AddRegisterPreparer(preparer func(*RegisterAttendance, *Attendance) (err error))

func (*AttendanceCommandHandler) AddUpdatePreparer

func (o *AttendanceCommandHandler) AddUpdatePreparer(preparer func(*UpdateAttendance, *Attendance) (err error))

func (*AttendanceCommandHandler) Execute

func (*AttendanceCommandHandler) SetupCommandHandler

func (o *AttendanceCommandHandler) SetupCommandHandler() (err error)

type AttendanceCommandType

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

func (AttendanceCommandType) GetBSON

func (o AttendanceCommandType) GetBSON() (ret interface{}, err error)

func (*AttendanceCommandType) IsCancelAttendance

func (o *AttendanceCommandType) IsCancelAttendance() bool

func (*AttendanceCommandType) IsConfirmAttendance

func (o *AttendanceCommandType) IsConfirmAttendance() bool

func (*AttendanceCommandType) IsCreateAttendance

func (o *AttendanceCommandType) IsCreateAttendance() bool

func (*AttendanceCommandType) IsDeleteAttendance

func (o *AttendanceCommandType) IsDeleteAttendance() bool

func (*AttendanceCommandType) IsRegisterAttendance

func (o *AttendanceCommandType) IsRegisterAttendance() bool

func (*AttendanceCommandType) IsUpdateAttendance

func (o *AttendanceCommandType) IsUpdateAttendance() bool

func (AttendanceCommandType) MarshalJSON

func (o AttendanceCommandType) MarshalJSON() (ret []byte, err error)

func (*AttendanceCommandType) Name

func (o *AttendanceCommandType) Name() string

func (*AttendanceCommandType) Ordinal

func (o *AttendanceCommandType) Ordinal() int

func (*AttendanceCommandType) SetBSON

func (o *AttendanceCommandType) SetBSON(raw bson.Raw) (err error)

func (*AttendanceCommandType) UnmarshalJSON

func (o *AttendanceCommandType) UnmarshalJSON(data []byte) (err error)

type AttendanceConfirmed

type AttendanceConfirmed struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type AttendanceCreated

type AttendanceCreated struct {
	Student *person.Profile  `json:"student" eh:"optional"`
	Date    *time.Time       `json:"date" eh:"optional"`
	Course  *Course          `json:"course" eh:"optional"`
	Hours   int              `json:"hours" eh:"optional"`
	State   *AttendanceState `json:"state" eh:"optional"`
	Token   string           `json:"token" eh:"optional"`
	Id      uuid.UUID        `json:"id" eh:"optional"`
}

type AttendanceDeleted

type AttendanceDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type AttendanceEventHandler

type AttendanceEventHandler struct {
	CanceledHandler   func(*AttendanceCanceled, *Attendance) (err error)   `json:"canceledHandler" eh:"optional"`
	ConfirmedHandler  func(*AttendanceConfirmed, *Attendance) (err error)  `json:"confirmedHandler" eh:"optional"`
	CreatedHandler    func(*AttendanceCreated, *Attendance) (err error)    `json:"createdHandler" eh:"optional"`
	DeletedHandler    func(*AttendanceDeleted, *Attendance) (err error)    `json:"deletedHandler" eh:"optional"`
	RegisteredHandler func(*AttendanceRegistered, *Attendance) (err error) `json:"registeredHandler" eh:"optional"`
	UpdatedHandler    func(*AttendanceUpdated, *Attendance) (err error)    `json:"updatedHandler" eh:"optional"`
}

func (*AttendanceEventHandler) Apply

func (o *AttendanceEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*AttendanceEventHandler) SetupEventHandler

func (o *AttendanceEventHandler) SetupEventHandler() (err error)

type AttendanceEventType

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

func (AttendanceEventType) GetBSON

func (o AttendanceEventType) GetBSON() (ret interface{}, err error)

func (*AttendanceEventType) IsAttendanceCanceled

func (o *AttendanceEventType) IsAttendanceCanceled() bool

func (*AttendanceEventType) IsAttendanceConfirmed

func (o *AttendanceEventType) IsAttendanceConfirmed() bool

func (*AttendanceEventType) IsAttendanceCreated

func (o *AttendanceEventType) IsAttendanceCreated() bool

func (*AttendanceEventType) IsAttendanceDeleted

func (o *AttendanceEventType) IsAttendanceDeleted() bool

func (*AttendanceEventType) IsAttendanceRegistered

func (o *AttendanceEventType) IsAttendanceRegistered() bool

func (*AttendanceEventType) IsAttendanceUpdated

func (o *AttendanceEventType) IsAttendanceUpdated() bool

func (AttendanceEventType) MarshalJSON

func (o AttendanceEventType) MarshalJSON() (ret []byte, err error)

func (*AttendanceEventType) Name

func (o *AttendanceEventType) Name() string

func (*AttendanceEventType) Ordinal

func (o *AttendanceEventType) Ordinal() int

func (*AttendanceEventType) SetBSON

func (o *AttendanceEventType) SetBSON(raw bson.Raw) (err error)

func (*AttendanceEventType) UnmarshalJSON

func (o *AttendanceEventType) UnmarshalJSON(data []byte) (err error)

type AttendanceExecutors

type AttendanceExecutors struct {
	Initial *AttendanceInitialExecutor `json:"initial" eh:"optional"`
}

func NewAttendanceExecutors

func NewAttendanceExecutors() (ret *AttendanceExecutors)

type AttendanceHandlers

type AttendanceHandlers struct {
	Initial *AttendanceInitialHandler `json:"initial" eh:"optional"`
}

func NewAttendanceHandlers

func NewAttendanceHandlers() (ret *AttendanceHandlers)

type AttendanceHttpCommandHandler

type AttendanceHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewAttendanceHttpCommandHandler

func NewAttendanceHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *AttendanceHttpCommandHandler)

func (*AttendanceHttpCommandHandler) Cancel

func (*AttendanceHttpCommandHandler) Confirm

func (*AttendanceHttpCommandHandler) Create

func (*AttendanceHttpCommandHandler) Delete

func (*AttendanceHttpCommandHandler) Register

func (*AttendanceHttpCommandHandler) Update

type AttendanceHttpQueryHandler

type AttendanceHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *AttendanceQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewAttendanceHttpQueryHandler

func NewAttendanceHttpQueryHandler(queryRepository *AttendanceQueryRepository) (ret *AttendanceHttpQueryHandler)

func (*AttendanceHttpQueryHandler) CountAll

func (*AttendanceHttpQueryHandler) CountById

func (*AttendanceHttpQueryHandler) ExistAll

func (*AttendanceHttpQueryHandler) ExistById

func (*AttendanceHttpQueryHandler) FindAll

func (*AttendanceHttpQueryHandler) FindById

type AttendanceInitialExecutor

type AttendanceInitialExecutor struct {
}

func NewAttendanceInitialExecutor

func NewAttendanceInitialExecutor() (ret *AttendanceInitialExecutor)

type AttendanceInitialHandler

type AttendanceInitialHandler struct {
}

func NewAttendanceInitialHandler

func NewAttendanceInitialHandler() (ret *AttendanceInitialHandler)

func (*AttendanceInitialHandler) Apply

func (o *AttendanceInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*AttendanceInitialHandler) SetupEventHandler

func (o *AttendanceInitialHandler) SetupEventHandler() (err error)

type AttendanceQueryRepository

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

func NewAttendanceQueryRepository

func NewAttendanceQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *AttendanceQueryRepository)

func (*AttendanceQueryRepository) CountAll

func (o *AttendanceQueryRepository) CountAll() (ret int, err error)

func (*AttendanceQueryRepository) CountById

func (o *AttendanceQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*AttendanceQueryRepository) ExistAll

func (o *AttendanceQueryRepository) ExistAll() (ret bool, err error)

func (*AttendanceQueryRepository) ExistById

func (o *AttendanceQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*AttendanceQueryRepository) FindAll

func (o *AttendanceQueryRepository) FindAll() (ret []*Attendance, err error)

func (*AttendanceQueryRepository) FindById

func (o *AttendanceQueryRepository) FindById(id uuid.UUID) (ret *Attendance, err error)

type AttendanceRegistered

type AttendanceRegistered struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Course  *Course         `json:"course" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

type AttendanceRouter

type AttendanceRouter struct {
	PathPrefix     string                        `json:"pathPrefix" eh:"optional"`
	QueryHandler   *AttendanceHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *AttendanceHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router                   `json:"router" eh:"optional"`
}

func NewAttendanceRouter

func NewAttendanceRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *AttendanceRouter)

func (*AttendanceRouter) Setup

func (o *AttendanceRouter) Setup(router *mux.Router) (err error)

type AttendanceState

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

func (AttendanceState) GetBSON

func (o AttendanceState) GetBSON() (ret interface{}, err error)

func (*AttendanceState) IsCanceled

func (o *AttendanceState) IsCanceled() bool

func (*AttendanceState) IsConfirmed

func (o *AttendanceState) IsConfirmed() bool

func (*AttendanceState) IsPresent

func (o *AttendanceState) IsPresent() bool

func (*AttendanceState) IsRegistered

func (o *AttendanceState) IsRegistered() bool

func (AttendanceState) MarshalJSON

func (o AttendanceState) MarshalJSON() (ret []byte, err error)

func (*AttendanceState) Name

func (o *AttendanceState) Name() string

func (*AttendanceState) Ordinal

func (o *AttendanceState) Ordinal() int

func (*AttendanceState) SetBSON

func (o *AttendanceState) SetBSON(raw bson.Raw) (err error)

func (*AttendanceState) UnmarshalJSON

func (o *AttendanceState) UnmarshalJSON(data []byte) (err error)

type AttendanceUpdated

type AttendanceUpdated struct {
	Student *person.Profile  `json:"student" eh:"optional"`
	Date    *time.Time       `json:"date" eh:"optional"`
	Course  *Course          `json:"course" eh:"optional"`
	Hours   int              `json:"hours" eh:"optional"`
	State   *AttendanceState `json:"state" eh:"optional"`
	Token   string           `json:"token" eh:"optional"`
	Id      uuid.UUID        `json:"id" eh:"optional"`
}

type CancelAttendance

type CancelAttendance struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*CancelAttendance) AggregateID

func (o *CancelAttendance) AggregateID() uuid.UUID

func (*CancelAttendance) AggregateType

func (o *CancelAttendance) AggregateType() eventhorizon.AggregateType

func (*CancelAttendance) CommandType

func (o *CancelAttendance) CommandType() eventhorizon.CommandType

type ConfirmAttendance

type ConfirmAttendance struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*ConfirmAttendance) AggregateID

func (o *ConfirmAttendance) AggregateID() uuid.UUID

func (*ConfirmAttendance) AggregateType

func (o *ConfirmAttendance) AggregateType() eventhorizon.AggregateType

func (*ConfirmAttendance) CommandType

func (o *ConfirmAttendance) CommandType() eventhorizon.CommandType

type Course

type Course struct {
	Name        string             `json:"name" eh:"optional"`
	Begin       *time.Time         `json:"begin" eh:"optional"`
	End         *time.Time         `json:"end" eh:"optional"`
	Teacher     *person.PersonName `json:"teacher" eh:"optional"`
	SchoolYear  *SchoolYear        `json:"schoolYear" eh:"optional"`
	Fee         float64            `json:"fee" eh:"optional"`
	Description string             `json:"description" eh:"optional"`
	Id          uuid.UUID          `json:"id" eh:"optional"`
}

func NewCourse

func NewCourse() (ret *Course)

func NewCourseByPropNames

func NewCourseByPropNames(intSalt int) (ret *Course)

func NewCoursesByPropNames

func NewCoursesByPropNames(count int) []*Course

func (*Course) EntityID

func (o *Course) EntityID() uuid.UUID

type CourseAggregateInitializer

type CourseAggregateInitializer struct {
	*eh.AggregateInitializer
	*CourseCommandHandler
	*CourseEventHandler
	ProjectorHandler *CourseEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewCourseAggregateInitializer

func NewCourseAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *CourseAggregateInitializer)

type CourseCli

type CourseCli struct {
}

func NewCourseCli

func NewCourseCli() (ret *CourseCli)

type CourseClient

type CourseClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewCourseClient

func NewCourseClient(url string, client *http.Client) (ret *CourseClient)

func (*CourseClient) Create

func (o *CourseClient) Create(items []*Course) (err error)

func (*CourseClient) ImportJSON

func (o *CourseClient) ImportJSON(fileJSON string) (err error)

func (*CourseClient) ReadFileJSON

func (o *CourseClient) ReadFileJSON(fileJSON string) (ret []*Course, err error)

type CourseCommandHandler

type CourseCommandHandler struct {
	CreateHandler func(*CreateCourse, *Course, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteCourse, *Course, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateCourse, *Course, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*CourseCommandHandler) AddCreatePreparer

func (o *CourseCommandHandler) AddCreatePreparer(preparer func(*CreateCourse, *Course) (err error))

func (*CourseCommandHandler) AddDeletePreparer

func (o *CourseCommandHandler) AddDeletePreparer(preparer func(*DeleteCourse, *Course) (err error))

func (*CourseCommandHandler) AddUpdatePreparer

func (o *CourseCommandHandler) AddUpdatePreparer(preparer func(*UpdateCourse, *Course) (err error))

func (*CourseCommandHandler) Execute

func (*CourseCommandHandler) SetupCommandHandler

func (o *CourseCommandHandler) SetupCommandHandler() (err error)

type CourseCommandType

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

func (CourseCommandType) GetBSON

func (o CourseCommandType) GetBSON() (ret interface{}, err error)

func (*CourseCommandType) IsCreateCourse

func (o *CourseCommandType) IsCreateCourse() bool

func (*CourseCommandType) IsDeleteCourse

func (o *CourseCommandType) IsDeleteCourse() bool

func (*CourseCommandType) IsUpdateCourse

func (o *CourseCommandType) IsUpdateCourse() bool

func (CourseCommandType) MarshalJSON

func (o CourseCommandType) MarshalJSON() (ret []byte, err error)

func (*CourseCommandType) Name

func (o *CourseCommandType) Name() string

func (*CourseCommandType) Ordinal

func (o *CourseCommandType) Ordinal() int

func (*CourseCommandType) SetBSON

func (o *CourseCommandType) SetBSON(raw bson.Raw) (err error)

func (*CourseCommandType) UnmarshalJSON

func (o *CourseCommandType) UnmarshalJSON(data []byte) (err error)

type CourseCreated

type CourseCreated struct {
	Name        string             `json:"name" eh:"optional"`
	Begin       *time.Time         `json:"begin" eh:"optional"`
	End         *time.Time         `json:"end" eh:"optional"`
	Teacher     *person.PersonName `json:"teacher" eh:"optional"`
	SchoolYear  *SchoolYear        `json:"schoolYear" eh:"optional"`
	Fee         float64            `json:"fee" eh:"optional"`
	Description string             `json:"description" eh:"optional"`
	Id          uuid.UUID          `json:"id" eh:"optional"`
}

type CourseDeleted

type CourseDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type CourseEventHandler

type CourseEventHandler struct {
	CreatedHandler func(*CourseCreated, *Course) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*CourseDeleted, *Course) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*CourseUpdated, *Course) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*CourseEventHandler) Apply

func (o *CourseEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*CourseEventHandler) SetupEventHandler

func (o *CourseEventHandler) SetupEventHandler() (err error)

type CourseEventType

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

func (CourseEventType) GetBSON

func (o CourseEventType) GetBSON() (ret interface{}, err error)

func (*CourseEventType) IsCourseCreated

func (o *CourseEventType) IsCourseCreated() bool

func (*CourseEventType) IsCourseDeleted

func (o *CourseEventType) IsCourseDeleted() bool

func (*CourseEventType) IsCourseUpdated

func (o *CourseEventType) IsCourseUpdated() bool

func (CourseEventType) MarshalJSON

func (o CourseEventType) MarshalJSON() (ret []byte, err error)

func (*CourseEventType) Name

func (o *CourseEventType) Name() string

func (*CourseEventType) Ordinal

func (o *CourseEventType) Ordinal() int

func (*CourseEventType) SetBSON

func (o *CourseEventType) SetBSON(raw bson.Raw) (err error)

func (*CourseEventType) UnmarshalJSON

func (o *CourseEventType) UnmarshalJSON(data []byte) (err error)

type CourseExecutors

type CourseExecutors struct {
	Initial *CourseInitialExecutor `json:"initial" eh:"optional"`
}

func NewCourseExecutors

func NewCourseExecutors() (ret *CourseExecutors)

type CourseHandlers

type CourseHandlers struct {
	Initial *CourseInitialHandler `json:"initial" eh:"optional"`
}

func NewCourseHandlers

func NewCourseHandlers() (ret *CourseHandlers)

type CourseHttpCommandHandler

type CourseHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewCourseHttpCommandHandler

func NewCourseHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *CourseHttpCommandHandler)

func (*CourseHttpCommandHandler) Create

func (*CourseHttpCommandHandler) Delete

func (*CourseHttpCommandHandler) Update

type CourseHttpQueryHandler

type CourseHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *CourseQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewCourseHttpQueryHandler

func NewCourseHttpQueryHandler(queryRepository *CourseQueryRepository) (ret *CourseHttpQueryHandler)

func (*CourseHttpQueryHandler) CountAll

func (*CourseHttpQueryHandler) CountById

func (*CourseHttpQueryHandler) ExistAll

func (*CourseHttpQueryHandler) ExistById

func (*CourseHttpQueryHandler) FindAll

func (*CourseHttpQueryHandler) FindById

type CourseInitialExecutor

type CourseInitialExecutor struct {
}

func NewCourseInitialExecutor

func NewCourseInitialExecutor() (ret *CourseInitialExecutor)

type CourseInitialHandler

type CourseInitialHandler struct {
}

func NewCourseInitialHandler

func NewCourseInitialHandler() (ret *CourseInitialHandler)

func (*CourseInitialHandler) Apply

func (o *CourseInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*CourseInitialHandler) SetupEventHandler

func (o *CourseInitialHandler) SetupEventHandler() (err error)

type CourseQueryRepository

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

func NewCourseQueryRepository

func NewCourseQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *CourseQueryRepository)

func (*CourseQueryRepository) CountAll

func (o *CourseQueryRepository) CountAll() (ret int, err error)

func (*CourseQueryRepository) CountById

func (o *CourseQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*CourseQueryRepository) ExistAll

func (o *CourseQueryRepository) ExistAll() (ret bool, err error)

func (*CourseQueryRepository) ExistById

func (o *CourseQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*CourseQueryRepository) FindAll

func (o *CourseQueryRepository) FindAll() (ret []*Course, err error)

func (*CourseQueryRepository) FindById

func (o *CourseQueryRepository) FindById(id uuid.UUID) (ret *Course, err error)

type CourseRouter

type CourseRouter struct {
	PathPrefix     string                    `json:"pathPrefix" eh:"optional"`
	QueryHandler   *CourseHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *CourseHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router               `json:"router" eh:"optional"`
}

func NewCourseRouter

func NewCourseRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *CourseRouter)

func (*CourseRouter) Setup

func (o *CourseRouter) Setup(router *mux.Router) (err error)

type CourseUpdated

type CourseUpdated struct {
	Name        string             `json:"name" eh:"optional"`
	Begin       *time.Time         `json:"begin" eh:"optional"`
	End         *time.Time         `json:"end" eh:"optional"`
	Teacher     *person.PersonName `json:"teacher" eh:"optional"`
	SchoolYear  *SchoolYear        `json:"schoolYear" eh:"optional"`
	Fee         float64            `json:"fee" eh:"optional"`
	Description string             `json:"description" eh:"optional"`
	Id          uuid.UUID          `json:"id" eh:"optional"`
}

type CreateAttendance

type CreateAttendance struct {
	Student *person.Profile  `json:"student" eh:"optional"`
	Date    *time.Time       `json:"date" eh:"optional"`
	Course  *Course          `json:"course" eh:"optional"`
	Hours   int              `json:"hours" eh:"optional"`
	State   *AttendanceState `json:"state" eh:"optional"`
	Token   string           `json:"token" eh:"optional"`
	Id      uuid.UUID        `json:"id" eh:"optional"`
}

func (*CreateAttendance) AggregateID

func (o *CreateAttendance) AggregateID() uuid.UUID

func (*CreateAttendance) AggregateType

func (o *CreateAttendance) AggregateType() eventhorizon.AggregateType

func (*CreateAttendance) CommandType

func (o *CreateAttendance) CommandType() eventhorizon.CommandType

type CreateCourse

type CreateCourse struct {
	Name        string             `json:"name" eh:"optional"`
	Begin       *time.Time         `json:"begin" eh:"optional"`
	End         *time.Time         `json:"end" eh:"optional"`
	Teacher     *person.PersonName `json:"teacher" eh:"optional"`
	SchoolYear  *SchoolYear        `json:"schoolYear" eh:"optional"`
	Fee         float64            `json:"fee" eh:"optional"`
	Description string             `json:"description" eh:"optional"`
	Id          uuid.UUID          `json:"id" eh:"optional"`
}

func (*CreateCourse) AggregateID

func (o *CreateCourse) AggregateID() uuid.UUID

func (*CreateCourse) AggregateType

func (o *CreateCourse) AggregateType() eventhorizon.AggregateType

func (*CreateCourse) CommandType

func (o *CreateCourse) CommandType() eventhorizon.CommandType

type CreateGrade

type CreateGrade struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Course  *Course         `json:"course" eh:"optional"`
	Grade   float64         `json:"grade" eh:"optional"`
	Comment string          `json:"comment" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func (*CreateGrade) AggregateID

func (o *CreateGrade) AggregateID() uuid.UUID

func (*CreateGrade) AggregateType

func (o *CreateGrade) AggregateType() eventhorizon.AggregateType

func (*CreateGrade) CommandType

func (o *CreateGrade) CommandType() eventhorizon.CommandType

type CreateGroup

type CreateGroup struct {
	Name           string            `json:"name" eh:"optional"`
	Category       *GroupCategory    `json:"category" eh:"optional"`
	SchoolYear     *SchoolYear       `json:"schoolYear" eh:"optional"`
	Representative *person.Profile   `json:"representative" eh:"optional"`
	Students       []*person.Profile `json:"students" eh:"optional"`
	Courses        []*Course         `json:"courses" eh:"optional"`
	Id             uuid.UUID         `json:"id" eh:"optional"`
}

func (*CreateGroup) AddToCourses

func (o *CreateGroup) AddToCourses(item *Course) *Course

func (*CreateGroup) AddToStudents

func (o *CreateGroup) AddToStudents(item *person.Profile) *person.Profile

func (*CreateGroup) AggregateID

func (o *CreateGroup) AggregateID() uuid.UUID

func (*CreateGroup) AggregateType

func (o *CreateGroup) AggregateType() eventhorizon.AggregateType

func (*CreateGroup) CommandType

func (o *CreateGroup) CommandType() eventhorizon.CommandType

type CreateSchoolApplication

type CreateSchoolApplication struct {
	Profile             *person.Profile    `json:"profile" eh:"optional"`
	ChurchContactPerson *person.PersonName `json:"churchContactPerson" eh:"optional"`
	ChurchContact       *person.Contact    `json:"churchContact" eh:"optional"`
	ChurchCommitment    bool               `json:"churchCommitment" eh:"optional"`
	SchoolYear          *SchoolYear        `json:"schoolYear" eh:"optional"`
	Group               string             `json:"group" eh:"optional"`
	Id                  uuid.UUID          `json:"id" eh:"optional"`
}

func (*CreateSchoolApplication) AggregateID

func (o *CreateSchoolApplication) AggregateID() uuid.UUID

func (*CreateSchoolApplication) AggregateType

func (*CreateSchoolApplication) CommandType

type CreateSchoolYear

type CreateSchoolYear struct {
	Name  string       `json:"name" eh:"optional"`
	Start *time.Time   `json:"start" eh:"optional"`
	End   *time.Time   `json:"end" eh:"optional"`
	Dates []*time.Time `json:"dates" eh:"optional"`
	Id    uuid.UUID    `json:"id" eh:"optional"`
}

func (*CreateSchoolYear) AddToDates

func (o *CreateSchoolYear) AddToDates(item *time.Time) *time.Time

func (*CreateSchoolYear) AggregateID

func (o *CreateSchoolYear) AggregateID() uuid.UUID

func (*CreateSchoolYear) AggregateType

func (o *CreateSchoolYear) AggregateType() eventhorizon.AggregateType

func (*CreateSchoolYear) CommandType

func (o *CreateSchoolYear) CommandType() eventhorizon.CommandType

type DeleteAttendance

type DeleteAttendance struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteAttendance) AggregateID

func (o *DeleteAttendance) AggregateID() uuid.UUID

func (*DeleteAttendance) AggregateType

func (o *DeleteAttendance) AggregateType() eventhorizon.AggregateType

func (*DeleteAttendance) CommandType

func (o *DeleteAttendance) CommandType() eventhorizon.CommandType

type DeleteCourse

type DeleteCourse struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteCourse) AggregateID

func (o *DeleteCourse) AggregateID() uuid.UUID

func (*DeleteCourse) AggregateType

func (o *DeleteCourse) AggregateType() eventhorizon.AggregateType

func (*DeleteCourse) CommandType

func (o *DeleteCourse) CommandType() eventhorizon.CommandType

type DeleteGrade

type DeleteGrade struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteGrade) AggregateID

func (o *DeleteGrade) AggregateID() uuid.UUID

func (*DeleteGrade) AggregateType

func (o *DeleteGrade) AggregateType() eventhorizon.AggregateType

func (*DeleteGrade) CommandType

func (o *DeleteGrade) CommandType() eventhorizon.CommandType

type DeleteGroup

type DeleteGroup struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteGroup) AggregateID

func (o *DeleteGroup) AggregateID() uuid.UUID

func (*DeleteGroup) AggregateType

func (o *DeleteGroup) AggregateType() eventhorizon.AggregateType

func (*DeleteGroup) CommandType

func (o *DeleteGroup) CommandType() eventhorizon.CommandType

type DeleteSchoolApplication

type DeleteSchoolApplication struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteSchoolApplication) AggregateID

func (o *DeleteSchoolApplication) AggregateID() uuid.UUID

func (*DeleteSchoolApplication) AggregateType

func (*DeleteSchoolApplication) CommandType

type DeleteSchoolYear

type DeleteSchoolYear struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

func (*DeleteSchoolYear) AggregateID

func (o *DeleteSchoolYear) AggregateID() uuid.UUID

func (*DeleteSchoolYear) AggregateType

func (o *DeleteSchoolYear) AggregateType() eventhorizon.AggregateType

func (*DeleteSchoolYear) CommandType

func (o *DeleteSchoolYear) CommandType() eventhorizon.CommandType

type Grade

type Grade struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Course  *Course         `json:"course" eh:"optional"`
	Grade   float64         `json:"grade" eh:"optional"`
	Comment string          `json:"comment" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func NewGrade

func NewGrade() (ret *Grade)

func NewGradeByPropNames

func NewGradeByPropNames(intSalt int) (ret *Grade)

func NewGradesByPropNames

func NewGradesByPropNames(count int) []*Grade

func (*Grade) EntityID

func (o *Grade) EntityID() uuid.UUID

type GradeAggregateInitializer

type GradeAggregateInitializer struct {
	*eh.AggregateInitializer
	*GradeCommandHandler
	*GradeEventHandler
	ProjectorHandler *GradeEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewGradeAggregateInitializer

func NewGradeAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *GradeAggregateInitializer)

type GradeCli

type GradeCli struct {
}

func NewGradeCli

func NewGradeCli() (ret *GradeCli)

type GradeClient

type GradeClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewGradeClient

func NewGradeClient(url string, client *http.Client) (ret *GradeClient)

func (*GradeClient) Create

func (o *GradeClient) Create(items []*Grade) (err error)

func (*GradeClient) ImportJSON

func (o *GradeClient) ImportJSON(fileJSON string) (err error)

func (*GradeClient) ReadFileJSON

func (o *GradeClient) ReadFileJSON(fileJSON string) (ret []*Grade, err error)

type GradeCommandHandler

type GradeCommandHandler struct {
	CreateHandler func(*CreateGrade, *Grade, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteGrade, *Grade, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateGrade, *Grade, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*GradeCommandHandler) AddCreatePreparer

func (o *GradeCommandHandler) AddCreatePreparer(preparer func(*CreateGrade, *Grade) (err error))

func (*GradeCommandHandler) AddDeletePreparer

func (o *GradeCommandHandler) AddDeletePreparer(preparer func(*DeleteGrade, *Grade) (err error))

func (*GradeCommandHandler) AddUpdatePreparer

func (o *GradeCommandHandler) AddUpdatePreparer(preparer func(*UpdateGrade, *Grade) (err error))

func (*GradeCommandHandler) Execute

func (*GradeCommandHandler) SetupCommandHandler

func (o *GradeCommandHandler) SetupCommandHandler() (err error)

type GradeCommandType

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

func (GradeCommandType) GetBSON

func (o GradeCommandType) GetBSON() (ret interface{}, err error)

func (*GradeCommandType) IsCreateGrade

func (o *GradeCommandType) IsCreateGrade() bool

func (*GradeCommandType) IsDeleteGrade

func (o *GradeCommandType) IsDeleteGrade() bool

func (*GradeCommandType) IsUpdateGrade

func (o *GradeCommandType) IsUpdateGrade() bool

func (GradeCommandType) MarshalJSON

func (o GradeCommandType) MarshalJSON() (ret []byte, err error)

func (*GradeCommandType) Name

func (o *GradeCommandType) Name() string

func (*GradeCommandType) Ordinal

func (o *GradeCommandType) Ordinal() int

func (*GradeCommandType) SetBSON

func (o *GradeCommandType) SetBSON(raw bson.Raw) (err error)

func (*GradeCommandType) UnmarshalJSON

func (o *GradeCommandType) UnmarshalJSON(data []byte) (err error)

type GradeCreated

type GradeCreated struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Course  *Course         `json:"course" eh:"optional"`
	Grade   float64         `json:"grade" eh:"optional"`
	Comment string          `json:"comment" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

type GradeDeleted

type GradeDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type GradeEventHandler

type GradeEventHandler struct {
	CreatedHandler func(*GradeCreated, *Grade) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*GradeDeleted, *Grade) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*GradeUpdated, *Grade) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*GradeEventHandler) Apply

func (o *GradeEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*GradeEventHandler) SetupEventHandler

func (o *GradeEventHandler) SetupEventHandler() (err error)

type GradeEventType

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

func (GradeEventType) GetBSON

func (o GradeEventType) GetBSON() (ret interface{}, err error)

func (*GradeEventType) IsGradeCreated

func (o *GradeEventType) IsGradeCreated() bool

func (*GradeEventType) IsGradeDeleted

func (o *GradeEventType) IsGradeDeleted() bool

func (*GradeEventType) IsGradeUpdated

func (o *GradeEventType) IsGradeUpdated() bool

func (GradeEventType) MarshalJSON

func (o GradeEventType) MarshalJSON() (ret []byte, err error)

func (*GradeEventType) Name

func (o *GradeEventType) Name() string

func (*GradeEventType) Ordinal

func (o *GradeEventType) Ordinal() int

func (*GradeEventType) SetBSON

func (o *GradeEventType) SetBSON(raw bson.Raw) (err error)

func (*GradeEventType) UnmarshalJSON

func (o *GradeEventType) UnmarshalJSON(data []byte) (err error)

type GradeExecutors

type GradeExecutors struct {
	Initial *GradeInitialExecutor `json:"initial" eh:"optional"`
}

func NewGradeExecutors

func NewGradeExecutors() (ret *GradeExecutors)

type GradeHandlers

type GradeHandlers struct {
	Initial *GradeInitialHandler `json:"initial" eh:"optional"`
}

func NewGradeHandlers

func NewGradeHandlers() (ret *GradeHandlers)

type GradeHttpCommandHandler

type GradeHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewGradeHttpCommandHandler

func NewGradeHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *GradeHttpCommandHandler)

func (*GradeHttpCommandHandler) Create

func (*GradeHttpCommandHandler) Delete

func (*GradeHttpCommandHandler) Update

type GradeHttpQueryHandler

type GradeHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *GradeQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewGradeHttpQueryHandler

func NewGradeHttpQueryHandler(queryRepository *GradeQueryRepository) (ret *GradeHttpQueryHandler)

func (*GradeHttpQueryHandler) CountAll

func (*GradeHttpQueryHandler) CountById

func (*GradeHttpQueryHandler) ExistAll

func (*GradeHttpQueryHandler) ExistById

func (*GradeHttpQueryHandler) FindAll

func (*GradeHttpQueryHandler) FindById

type GradeInitialExecutor

type GradeInitialExecutor struct {
}

func NewGradeInitialExecutor

func NewGradeInitialExecutor() (ret *GradeInitialExecutor)

type GradeInitialHandler

type GradeInitialHandler struct {
}

func NewGradeInitialHandler

func NewGradeInitialHandler() (ret *GradeInitialHandler)

func (*GradeInitialHandler) Apply

func (o *GradeInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*GradeInitialHandler) SetupEventHandler

func (o *GradeInitialHandler) SetupEventHandler() (err error)

type GradeQueryRepository

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

func NewGradeQueryRepository

func NewGradeQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *GradeQueryRepository)

func (*GradeQueryRepository) CountAll

func (o *GradeQueryRepository) CountAll() (ret int, err error)

func (*GradeQueryRepository) CountById

func (o *GradeQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*GradeQueryRepository) ExistAll

func (o *GradeQueryRepository) ExistAll() (ret bool, err error)

func (*GradeQueryRepository) ExistById

func (o *GradeQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*GradeQueryRepository) FindAll

func (o *GradeQueryRepository) FindAll() (ret []*Grade, err error)

func (*GradeQueryRepository) FindById

func (o *GradeQueryRepository) FindById(id uuid.UUID) (ret *Grade, err error)

type GradeRouter

type GradeRouter struct {
	PathPrefix     string                   `json:"pathPrefix" eh:"optional"`
	QueryHandler   *GradeHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *GradeHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router              `json:"router" eh:"optional"`
}

func NewGradeRouter

func NewGradeRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *GradeRouter)

func (*GradeRouter) Setup

func (o *GradeRouter) Setup(router *mux.Router) (err error)

type GradeUpdated

type GradeUpdated struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Course  *Course         `json:"course" eh:"optional"`
	Grade   float64         `json:"grade" eh:"optional"`
	Comment string          `json:"comment" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

type Group

type Group struct {
	Name           string            `json:"name" eh:"optional"`
	Category       *GroupCategory    `json:"category" eh:"optional"`
	SchoolYear     *SchoolYear       `json:"schoolYear" eh:"optional"`
	Representative *person.Profile   `json:"representative" eh:"optional"`
	Students       []*person.Profile `json:"students" eh:"optional"`
	Courses        []*Course         `json:"courses" eh:"optional"`
	Id             uuid.UUID         `json:"id" eh:"optional"`
}

func NewGroup

func NewGroup() (ret *Group)

func NewGroupByPropNames

func NewGroupByPropNames(intSalt int) (ret *Group)

func NewGroupsByPropNames

func NewGroupsByPropNames(count int) []*Group

func (*Group) AddToCourses

func (o *Group) AddToCourses(item *Course) *Course

func (*Group) AddToStudents

func (o *Group) AddToStudents(item *person.Profile) *person.Profile

func (*Group) EntityID

func (o *Group) EntityID() uuid.UUID

type GroupAggregateInitializer

type GroupAggregateInitializer struct {
	*eh.AggregateInitializer
	*GroupCommandHandler
	*GroupEventHandler
	ProjectorHandler *GroupEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewGroupAggregateInitializer

func NewGroupAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *GroupAggregateInitializer)

type GroupCategory

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

func (GroupCategory) GetBSON

func (o GroupCategory) GetBSON() (ret interface{}, err error)

func (*GroupCategory) IsCourseGroup

func (o *GroupCategory) IsCourseGroup() bool

func (*GroupCategory) IsYearGroup

func (o *GroupCategory) IsYearGroup() bool

func (GroupCategory) MarshalJSON

func (o GroupCategory) MarshalJSON() (ret []byte, err error)

func (*GroupCategory) Name

func (o *GroupCategory) Name() string

func (*GroupCategory) Ordinal

func (o *GroupCategory) Ordinal() int

func (*GroupCategory) SetBSON

func (o *GroupCategory) SetBSON(raw bson.Raw) (err error)

func (*GroupCategory) UnmarshalJSON

func (o *GroupCategory) UnmarshalJSON(data []byte) (err error)

type GroupCli

type GroupCli struct {
}

func NewGroupCli

func NewGroupCli() (ret *GroupCli)

type GroupClient

type GroupClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewGroupClient

func NewGroupClient(url string, client *http.Client) (ret *GroupClient)

func (*GroupClient) Create

func (o *GroupClient) Create(items []*Group) (err error)

func (*GroupClient) ImportJSON

func (o *GroupClient) ImportJSON(fileJSON string) (err error)

func (*GroupClient) ReadFileJSON

func (o *GroupClient) ReadFileJSON(fileJSON string) (ret []*Group, err error)

type GroupCommandHandler

type GroupCommandHandler struct {
	CreateHandler func(*CreateGroup, *Group, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteGroup, *Group, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateGroup, *Group, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*GroupCommandHandler) AddCreatePreparer

func (o *GroupCommandHandler) AddCreatePreparer(preparer func(*CreateGroup, *Group) (err error))

func (*GroupCommandHandler) AddDeletePreparer

func (o *GroupCommandHandler) AddDeletePreparer(preparer func(*DeleteGroup, *Group) (err error))

func (*GroupCommandHandler) AddUpdatePreparer

func (o *GroupCommandHandler) AddUpdatePreparer(preparer func(*UpdateGroup, *Group) (err error))

func (*GroupCommandHandler) Execute

func (*GroupCommandHandler) SetupCommandHandler

func (o *GroupCommandHandler) SetupCommandHandler() (err error)

type GroupCommandType

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

func (GroupCommandType) GetBSON

func (o GroupCommandType) GetBSON() (ret interface{}, err error)

func (*GroupCommandType) IsCreateGroup

func (o *GroupCommandType) IsCreateGroup() bool

func (*GroupCommandType) IsDeleteGroup

func (o *GroupCommandType) IsDeleteGroup() bool

func (*GroupCommandType) IsUpdateGroup

func (o *GroupCommandType) IsUpdateGroup() bool

func (GroupCommandType) MarshalJSON

func (o GroupCommandType) MarshalJSON() (ret []byte, err error)

func (*GroupCommandType) Name

func (o *GroupCommandType) Name() string

func (*GroupCommandType) Ordinal

func (o *GroupCommandType) Ordinal() int

func (*GroupCommandType) SetBSON

func (o *GroupCommandType) SetBSON(raw bson.Raw) (err error)

func (*GroupCommandType) UnmarshalJSON

func (o *GroupCommandType) UnmarshalJSON(data []byte) (err error)

type GroupCreated

type GroupCreated struct {
	Name           string            `json:"name" eh:"optional"`
	Category       *GroupCategory    `json:"category" eh:"optional"`
	SchoolYear     *SchoolYear       `json:"schoolYear" eh:"optional"`
	Representative *person.Profile   `json:"representative" eh:"optional"`
	Students       []*person.Profile `json:"students" eh:"optional"`
	Courses        []*Course         `json:"courses" eh:"optional"`
	Id             uuid.UUID         `json:"id" eh:"optional"`
}

func (*GroupCreated) AddToCourses

func (o *GroupCreated) AddToCourses(item *Course) *Course

func (*GroupCreated) AddToStudents

func (o *GroupCreated) AddToStudents(item *person.Profile) *person.Profile

type GroupDeleted

type GroupDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type GroupEventHandler

type GroupEventHandler struct {
	CreatedHandler func(*GroupCreated, *Group) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*GroupDeleted, *Group) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*GroupUpdated, *Group) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*GroupEventHandler) Apply

func (o *GroupEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*GroupEventHandler) SetupEventHandler

func (o *GroupEventHandler) SetupEventHandler() (err error)

type GroupEventType

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

func (GroupEventType) GetBSON

func (o GroupEventType) GetBSON() (ret interface{}, err error)

func (*GroupEventType) IsGroupCreated

func (o *GroupEventType) IsGroupCreated() bool

func (*GroupEventType) IsGroupDeleted

func (o *GroupEventType) IsGroupDeleted() bool

func (*GroupEventType) IsGroupUpdated

func (o *GroupEventType) IsGroupUpdated() bool

func (GroupEventType) MarshalJSON

func (o GroupEventType) MarshalJSON() (ret []byte, err error)

func (*GroupEventType) Name

func (o *GroupEventType) Name() string

func (*GroupEventType) Ordinal

func (o *GroupEventType) Ordinal() int

func (*GroupEventType) SetBSON

func (o *GroupEventType) SetBSON(raw bson.Raw) (err error)

func (*GroupEventType) UnmarshalJSON

func (o *GroupEventType) UnmarshalJSON(data []byte) (err error)

type GroupExecutors

type GroupExecutors struct {
	Initial *GroupInitialExecutor `json:"initial" eh:"optional"`
}

func NewGroupExecutors

func NewGroupExecutors() (ret *GroupExecutors)

type GroupHandlers

type GroupHandlers struct {
	Initial *GroupInitialHandler `json:"initial" eh:"optional"`
}

func NewGroupHandlers

func NewGroupHandlers() (ret *GroupHandlers)

type GroupHttpCommandHandler

type GroupHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewGroupHttpCommandHandler

func NewGroupHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *GroupHttpCommandHandler)

func (*GroupHttpCommandHandler) Create

func (*GroupHttpCommandHandler) Delete

func (*GroupHttpCommandHandler) Update

type GroupHttpQueryHandler

type GroupHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *GroupQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewGroupHttpQueryHandler

func NewGroupHttpQueryHandler(queryRepository *GroupQueryRepository) (ret *GroupHttpQueryHandler)

func (*GroupHttpQueryHandler) CountAll

func (*GroupHttpQueryHandler) CountById

func (*GroupHttpQueryHandler) ExistAll

func (*GroupHttpQueryHandler) ExistById

func (*GroupHttpQueryHandler) FindAll

func (*GroupHttpQueryHandler) FindById

type GroupInitialExecutor

type GroupInitialExecutor struct {
}

func NewGroupInitialExecutor

func NewGroupInitialExecutor() (ret *GroupInitialExecutor)

type GroupInitialHandler

type GroupInitialHandler struct {
}

func NewGroupInitialHandler

func NewGroupInitialHandler() (ret *GroupInitialHandler)

func (*GroupInitialHandler) Apply

func (o *GroupInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*GroupInitialHandler) SetupEventHandler

func (o *GroupInitialHandler) SetupEventHandler() (err error)

type GroupQueryRepository

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

func NewGroupQueryRepository

func NewGroupQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *GroupQueryRepository)

func (*GroupQueryRepository) CountAll

func (o *GroupQueryRepository) CountAll() (ret int, err error)

func (*GroupQueryRepository) CountById

func (o *GroupQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*GroupQueryRepository) ExistAll

func (o *GroupQueryRepository) ExistAll() (ret bool, err error)

func (*GroupQueryRepository) ExistById

func (o *GroupQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*GroupQueryRepository) FindAll

func (o *GroupQueryRepository) FindAll() (ret []*Group, err error)

func (*GroupQueryRepository) FindById

func (o *GroupQueryRepository) FindById(id uuid.UUID) (ret *Group, err error)

type GroupRouter

type GroupRouter struct {
	PathPrefix     string                   `json:"pathPrefix" eh:"optional"`
	QueryHandler   *GroupHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *GroupHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router              `json:"router" eh:"optional"`
}

func NewGroupRouter

func NewGroupRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *GroupRouter)

func (*GroupRouter) Setup

func (o *GroupRouter) Setup(router *mux.Router) (err error)

type GroupUpdated

type GroupUpdated struct {
	Name           string            `json:"name" eh:"optional"`
	Category       *GroupCategory    `json:"category" eh:"optional"`
	SchoolYear     *SchoolYear       `json:"schoolYear" eh:"optional"`
	Representative *person.Profile   `json:"representative" eh:"optional"`
	Students       []*person.Profile `json:"students" eh:"optional"`
	Courses        []*Course         `json:"courses" eh:"optional"`
	Id             uuid.UUID         `json:"id" eh:"optional"`
}

func (*GroupUpdated) AddToCourses

func (o *GroupUpdated) AddToCourses(item *Course) *Course

func (*GroupUpdated) AddToStudents

func (o *GroupUpdated) AddToStudents(item *person.Profile) *person.Profile

type RegisterAttendance

type RegisterAttendance struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Course  *Course         `json:"course" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func (*RegisterAttendance) AggregateID

func (o *RegisterAttendance) AggregateID() uuid.UUID

func (*RegisterAttendance) AggregateType

func (o *RegisterAttendance) AggregateType() eventhorizon.AggregateType

func (*RegisterAttendance) CommandType

func (o *RegisterAttendance) CommandType() eventhorizon.CommandType

type SchoolApplication

type SchoolApplication struct {
	Profile             *person.Profile    `json:"profile" eh:"optional"`
	ChurchContactPerson *person.PersonName `json:"churchContactPerson" eh:"optional"`
	ChurchContact       *person.Contact    `json:"churchContact" eh:"optional"`
	ChurchCommitment    bool               `json:"churchCommitment" eh:"optional"`
	SchoolYear          *SchoolYear        `json:"schoolYear" eh:"optional"`
	Group               string             `json:"group" eh:"optional"`
	Id                  uuid.UUID          `json:"id" eh:"optional"`
}

func NewSchoolApplication

func NewSchoolApplication() (ret *SchoolApplication)

func NewSchoolApplicationByPropNames

func NewSchoolApplicationByPropNames(intSalt int) (ret *SchoolApplication)

func NewSchoolApplicationsByPropNames

func NewSchoolApplicationsByPropNames(count int) []*SchoolApplication

func (*SchoolApplication) EntityID

func (o *SchoolApplication) EntityID() uuid.UUID

type SchoolApplicationAggregateInitializer

type SchoolApplicationAggregateInitializer struct {
	*eh.AggregateInitializer
	*SchoolApplicationCommandHandler
	*SchoolApplicationEventHandler
	ProjectorHandler *SchoolApplicationEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewSchoolApplicationAggregateInitializer

func NewSchoolApplicationAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *SchoolApplicationAggregateInitializer)

type SchoolApplicationCli

type SchoolApplicationCli struct {
}

func NewSchoolApplicationCli

func NewSchoolApplicationCli() (ret *SchoolApplicationCli)

type SchoolApplicationClient

type SchoolApplicationClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewSchoolApplicationClient

func NewSchoolApplicationClient(url string, client *http.Client) (ret *SchoolApplicationClient)

func (*SchoolApplicationClient) Create

func (o *SchoolApplicationClient) Create(items []*SchoolApplication) (err error)

func (*SchoolApplicationClient) ImportJSON

func (o *SchoolApplicationClient) ImportJSON(fileJSON string) (err error)

func (*SchoolApplicationClient) ReadFileJSON

func (o *SchoolApplicationClient) ReadFileJSON(fileJSON string) (ret []*SchoolApplication, err error)

type SchoolApplicationCommandHandler

type SchoolApplicationCommandHandler struct {
	CreateHandler func(*CreateSchoolApplication, *SchoolApplication, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteSchoolApplication, *SchoolApplication, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateSchoolApplication, *SchoolApplication, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*SchoolApplicationCommandHandler) AddCreatePreparer

func (o *SchoolApplicationCommandHandler) AddCreatePreparer(preparer func(*CreateSchoolApplication, *SchoolApplication) (err error))

func (*SchoolApplicationCommandHandler) AddDeletePreparer

func (o *SchoolApplicationCommandHandler) AddDeletePreparer(preparer func(*DeleteSchoolApplication, *SchoolApplication) (err error))

func (*SchoolApplicationCommandHandler) AddUpdatePreparer

func (o *SchoolApplicationCommandHandler) AddUpdatePreparer(preparer func(*UpdateSchoolApplication, *SchoolApplication) (err error))

func (*SchoolApplicationCommandHandler) Execute

func (*SchoolApplicationCommandHandler) SetupCommandHandler

func (o *SchoolApplicationCommandHandler) SetupCommandHandler() (err error)

type SchoolApplicationCommandType

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

func (SchoolApplicationCommandType) GetBSON

func (o SchoolApplicationCommandType) GetBSON() (ret interface{}, err error)

func (*SchoolApplicationCommandType) IsCreateSchoolApplication

func (o *SchoolApplicationCommandType) IsCreateSchoolApplication() bool

func (*SchoolApplicationCommandType) IsDeleteSchoolApplication

func (o *SchoolApplicationCommandType) IsDeleteSchoolApplication() bool

func (*SchoolApplicationCommandType) IsUpdateSchoolApplication

func (o *SchoolApplicationCommandType) IsUpdateSchoolApplication() bool

func (SchoolApplicationCommandType) MarshalJSON

func (o SchoolApplicationCommandType) MarshalJSON() (ret []byte, err error)

func (*SchoolApplicationCommandType) Name

func (*SchoolApplicationCommandType) Ordinal

func (o *SchoolApplicationCommandType) Ordinal() int

func (*SchoolApplicationCommandType) SetBSON

func (o *SchoolApplicationCommandType) SetBSON(raw bson.Raw) (err error)

func (*SchoolApplicationCommandType) UnmarshalJSON

func (o *SchoolApplicationCommandType) UnmarshalJSON(data []byte) (err error)

type SchoolApplicationCreated

type SchoolApplicationCreated struct {
	Profile             *person.Profile    `json:"profile" eh:"optional"`
	ChurchContactPerson *person.PersonName `json:"churchContactPerson" eh:"optional"`
	ChurchContact       *person.Contact    `json:"churchContact" eh:"optional"`
	ChurchCommitment    bool               `json:"churchCommitment" eh:"optional"`
	SchoolYear          *SchoolYear        `json:"schoolYear" eh:"optional"`
	Group               string             `json:"group" eh:"optional"`
	Id                  uuid.UUID          `json:"id" eh:"optional"`
}

type SchoolApplicationDeleted

type SchoolApplicationDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type SchoolApplicationEventHandler

type SchoolApplicationEventHandler struct {
	CreatedHandler func(*SchoolApplicationCreated, *SchoolApplication) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*SchoolApplicationDeleted, *SchoolApplication) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*SchoolApplicationUpdated, *SchoolApplication) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*SchoolApplicationEventHandler) Apply

func (*SchoolApplicationEventHandler) SetupEventHandler

func (o *SchoolApplicationEventHandler) SetupEventHandler() (err error)

type SchoolApplicationEventType

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

func (SchoolApplicationEventType) GetBSON

func (o SchoolApplicationEventType) GetBSON() (ret interface{}, err error)

func (*SchoolApplicationEventType) IsSchoolApplicationCreated

func (o *SchoolApplicationEventType) IsSchoolApplicationCreated() bool

func (*SchoolApplicationEventType) IsSchoolApplicationDeleted

func (o *SchoolApplicationEventType) IsSchoolApplicationDeleted() bool

func (*SchoolApplicationEventType) IsSchoolApplicationUpdated

func (o *SchoolApplicationEventType) IsSchoolApplicationUpdated() bool

func (SchoolApplicationEventType) MarshalJSON

func (o SchoolApplicationEventType) MarshalJSON() (ret []byte, err error)

func (*SchoolApplicationEventType) Name

func (*SchoolApplicationEventType) Ordinal

func (o *SchoolApplicationEventType) Ordinal() int

func (*SchoolApplicationEventType) SetBSON

func (o *SchoolApplicationEventType) SetBSON(raw bson.Raw) (err error)

func (*SchoolApplicationEventType) UnmarshalJSON

func (o *SchoolApplicationEventType) UnmarshalJSON(data []byte) (err error)

type SchoolApplicationExecutors

type SchoolApplicationExecutors struct {
	Initial *SchoolApplicationInitialExecutor `json:"initial" eh:"optional"`
}

func NewSchoolApplicationExecutors

func NewSchoolApplicationExecutors() (ret *SchoolApplicationExecutors)

type SchoolApplicationHandlers

type SchoolApplicationHandlers struct {
	Initial *SchoolApplicationInitialHandler `json:"initial" eh:"optional"`
}

func NewSchoolApplicationHandlers

func NewSchoolApplicationHandlers() (ret *SchoolApplicationHandlers)

type SchoolApplicationHttpCommandHandler

type SchoolApplicationHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewSchoolApplicationHttpCommandHandler

func NewSchoolApplicationHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *SchoolApplicationHttpCommandHandler)

func (*SchoolApplicationHttpCommandHandler) Create

func (*SchoolApplicationHttpCommandHandler) Delete

func (*SchoolApplicationHttpCommandHandler) Update

type SchoolApplicationHttpQueryHandler

type SchoolApplicationHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *SchoolApplicationQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewSchoolApplicationHttpQueryHandler

func NewSchoolApplicationHttpQueryHandler(queryRepository *SchoolApplicationQueryRepository) (ret *SchoolApplicationHttpQueryHandler)

func (*SchoolApplicationHttpQueryHandler) CountAll

func (*SchoolApplicationHttpQueryHandler) CountById

func (*SchoolApplicationHttpQueryHandler) ExistAll

func (*SchoolApplicationHttpQueryHandler) ExistById

func (*SchoolApplicationHttpQueryHandler) FindAll

func (*SchoolApplicationHttpQueryHandler) FindById

type SchoolApplicationInitialExecutor

type SchoolApplicationInitialExecutor struct {
}

func NewSchoolApplicationInitialExecutor

func NewSchoolApplicationInitialExecutor() (ret *SchoolApplicationInitialExecutor)

type SchoolApplicationInitialHandler

type SchoolApplicationInitialHandler struct {
}

func NewSchoolApplicationInitialHandler

func NewSchoolApplicationInitialHandler() (ret *SchoolApplicationInitialHandler)

func (*SchoolApplicationInitialHandler) Apply

func (*SchoolApplicationInitialHandler) SetupEventHandler

func (o *SchoolApplicationInitialHandler) SetupEventHandler() (err error)

type SchoolApplicationQueryRepository

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

func NewSchoolApplicationQueryRepository

func NewSchoolApplicationQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *SchoolApplicationQueryRepository)

func (*SchoolApplicationQueryRepository) CountAll

func (o *SchoolApplicationQueryRepository) CountAll() (ret int, err error)

func (*SchoolApplicationQueryRepository) CountById

func (o *SchoolApplicationQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*SchoolApplicationQueryRepository) ExistAll

func (o *SchoolApplicationQueryRepository) ExistAll() (ret bool, err error)

func (*SchoolApplicationQueryRepository) ExistById

func (o *SchoolApplicationQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*SchoolApplicationQueryRepository) FindAll

func (o *SchoolApplicationQueryRepository) FindAll() (ret []*SchoolApplication, err error)

func (*SchoolApplicationQueryRepository) FindById

type SchoolApplicationRouter

type SchoolApplicationRouter struct {
	PathPrefix     string                               `json:"pathPrefix" eh:"optional"`
	QueryHandler   *SchoolApplicationHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *SchoolApplicationHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router                          `json:"router" eh:"optional"`
}

func NewSchoolApplicationRouter

func NewSchoolApplicationRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *SchoolApplicationRouter)

func (*SchoolApplicationRouter) Setup

func (o *SchoolApplicationRouter) Setup(router *mux.Router) (err error)

type SchoolApplicationUpdated

type SchoolApplicationUpdated struct {
	Profile             *person.Profile    `json:"profile" eh:"optional"`
	ChurchContactPerson *person.PersonName `json:"churchContactPerson" eh:"optional"`
	ChurchContact       *person.Contact    `json:"churchContact" eh:"optional"`
	ChurchCommitment    bool               `json:"churchCommitment" eh:"optional"`
	SchoolYear          *SchoolYear        `json:"schoolYear" eh:"optional"`
	Group               string             `json:"group" eh:"optional"`
	Id                  uuid.UUID          `json:"id" eh:"optional"`
}

type SchoolYear

type SchoolYear struct {
	Name  string       `json:"name" eh:"optional"`
	Start *time.Time   `json:"start" eh:"optional"`
	End   *time.Time   `json:"end" eh:"optional"`
	Dates []*time.Time `json:"dates" eh:"optional"`
	Id    uuid.UUID    `json:"id" eh:"optional"`
}

func NewSchoolYear

func NewSchoolYear() (ret *SchoolYear)

func NewSchoolYearByPropNames

func NewSchoolYearByPropNames(intSalt int) (ret *SchoolYear)

func NewSchoolYearsByPropNames

func NewSchoolYearsByPropNames(count int) []*SchoolYear

func (*SchoolYear) AddToDates

func (o *SchoolYear) AddToDates(item *time.Time) *time.Time

func (*SchoolYear) EntityID

func (o *SchoolYear) EntityID() uuid.UUID

type SchoolYearAggregateInitializer

type SchoolYearAggregateInitializer struct {
	*eh.AggregateInitializer
	*SchoolYearCommandHandler
	*SchoolYearEventHandler
	ProjectorHandler *SchoolYearEventHandler `json:"projectorHandler" eh:"optional"`
}

func NewSchoolYearAggregateInitializer

func NewSchoolYearAggregateInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *SchoolYearAggregateInitializer)

type SchoolYearCli

type SchoolYearCli struct {
}

func NewSchoolYearCli

func NewSchoolYearCli() (ret *SchoolYearCli)

type SchoolYearClient

type SchoolYearClient struct {
	Url    string       `json:"url" eh:"optional"`
	Client *http.Client `json:"client" eh:"optional"`
}

func NewSchoolYearClient

func NewSchoolYearClient(url string, client *http.Client) (ret *SchoolYearClient)

func (*SchoolYearClient) Create

func (o *SchoolYearClient) Create(items []*SchoolYear) (err error)

func (*SchoolYearClient) ImportJSON

func (o *SchoolYearClient) ImportJSON(fileJSON string) (err error)

func (*SchoolYearClient) ReadFileJSON

func (o *SchoolYearClient) ReadFileJSON(fileJSON string) (ret []*SchoolYear, err error)

type SchoolYearCommandHandler

type SchoolYearCommandHandler struct {
	CreateHandler func(*CreateSchoolYear, *SchoolYear, eh.AggregateStoreEvent) (err error) `json:"createHandler" eh:"optional"`
	DeleteHandler func(*DeleteSchoolYear, *SchoolYear, eh.AggregateStoreEvent) (err error) `json:"deleteHandler" eh:"optional"`
	UpdateHandler func(*UpdateSchoolYear, *SchoolYear, eh.AggregateStoreEvent) (err error) `json:"updateHandler" eh:"optional"`
}

func (*SchoolYearCommandHandler) AddCreatePreparer

func (o *SchoolYearCommandHandler) AddCreatePreparer(preparer func(*CreateSchoolYear, *SchoolYear) (err error))

func (*SchoolYearCommandHandler) AddDeletePreparer

func (o *SchoolYearCommandHandler) AddDeletePreparer(preparer func(*DeleteSchoolYear, *SchoolYear) (err error))

func (*SchoolYearCommandHandler) AddUpdatePreparer

func (o *SchoolYearCommandHandler) AddUpdatePreparer(preparer func(*UpdateSchoolYear, *SchoolYear) (err error))

func (*SchoolYearCommandHandler) Execute

func (*SchoolYearCommandHandler) SetupCommandHandler

func (o *SchoolYearCommandHandler) SetupCommandHandler() (err error)

type SchoolYearCommandType

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

func (SchoolYearCommandType) GetBSON

func (o SchoolYearCommandType) GetBSON() (ret interface{}, err error)

func (*SchoolYearCommandType) IsCreateSchoolYear

func (o *SchoolYearCommandType) IsCreateSchoolYear() bool

func (*SchoolYearCommandType) IsDeleteSchoolYear

func (o *SchoolYearCommandType) IsDeleteSchoolYear() bool

func (*SchoolYearCommandType) IsUpdateSchoolYear

func (o *SchoolYearCommandType) IsUpdateSchoolYear() bool

func (SchoolYearCommandType) MarshalJSON

func (o SchoolYearCommandType) MarshalJSON() (ret []byte, err error)

func (*SchoolYearCommandType) Name

func (o *SchoolYearCommandType) Name() string

func (*SchoolYearCommandType) Ordinal

func (o *SchoolYearCommandType) Ordinal() int

func (*SchoolYearCommandType) SetBSON

func (o *SchoolYearCommandType) SetBSON(raw bson.Raw) (err error)

func (*SchoolYearCommandType) UnmarshalJSON

func (o *SchoolYearCommandType) UnmarshalJSON(data []byte) (err error)

type SchoolYearCreated

type SchoolYearCreated struct {
	Name  string       `json:"name" eh:"optional"`
	Start *time.Time   `json:"start" eh:"optional"`
	End   *time.Time   `json:"end" eh:"optional"`
	Dates []*time.Time `json:"dates" eh:"optional"`
	Id    uuid.UUID    `json:"id" eh:"optional"`
}

func (*SchoolYearCreated) AddToDates

func (o *SchoolYearCreated) AddToDates(item *time.Time) *time.Time

type SchoolYearDeleted

type SchoolYearDeleted struct {
	Id uuid.UUID `json:"id" eh:"optional"`
}

type SchoolYearEventHandler

type SchoolYearEventHandler struct {
	CreatedHandler func(*SchoolYearCreated, *SchoolYear) (err error) `json:"createdHandler" eh:"optional"`
	DeletedHandler func(*SchoolYearDeleted, *SchoolYear) (err error) `json:"deletedHandler" eh:"optional"`
	UpdatedHandler func(*SchoolYearUpdated, *SchoolYear) (err error) `json:"updatedHandler" eh:"optional"`
}

func (*SchoolYearEventHandler) Apply

func (o *SchoolYearEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*SchoolYearEventHandler) SetupEventHandler

func (o *SchoolYearEventHandler) SetupEventHandler() (err error)

type SchoolYearEventType

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

func (SchoolYearEventType) GetBSON

func (o SchoolYearEventType) GetBSON() (ret interface{}, err error)

func (*SchoolYearEventType) IsSchoolYearCreated

func (o *SchoolYearEventType) IsSchoolYearCreated() bool

func (*SchoolYearEventType) IsSchoolYearDeleted

func (o *SchoolYearEventType) IsSchoolYearDeleted() bool

func (*SchoolYearEventType) IsSchoolYearUpdated

func (o *SchoolYearEventType) IsSchoolYearUpdated() bool

func (SchoolYearEventType) MarshalJSON

func (o SchoolYearEventType) MarshalJSON() (ret []byte, err error)

func (*SchoolYearEventType) Name

func (o *SchoolYearEventType) Name() string

func (*SchoolYearEventType) Ordinal

func (o *SchoolYearEventType) Ordinal() int

func (*SchoolYearEventType) SetBSON

func (o *SchoolYearEventType) SetBSON(raw bson.Raw) (err error)

func (*SchoolYearEventType) UnmarshalJSON

func (o *SchoolYearEventType) UnmarshalJSON(data []byte) (err error)

type SchoolYearExecutors

type SchoolYearExecutors struct {
	Initial *SchoolYearInitialExecutor `json:"initial" eh:"optional"`
}

func NewSchoolYearExecutors

func NewSchoolYearExecutors() (ret *SchoolYearExecutors)

type SchoolYearHandlers

type SchoolYearHandlers struct {
	Initial *SchoolYearInitialHandler `json:"initial" eh:"optional"`
}

func NewSchoolYearHandlers

func NewSchoolYearHandlers() (ret *SchoolYearHandlers)

type SchoolYearHttpCommandHandler

type SchoolYearHttpCommandHandler struct {
	*eh.HttpCommandHandler
}

func NewSchoolYearHttpCommandHandler

func NewSchoolYearHttpCommandHandler(context context.Context, commandBus eventhorizon.CommandHandler) (ret *SchoolYearHttpCommandHandler)

func (*SchoolYearHttpCommandHandler) Create

func (*SchoolYearHttpCommandHandler) Delete

func (*SchoolYearHttpCommandHandler) Update

type SchoolYearHttpQueryHandler

type SchoolYearHttpQueryHandler struct {
	*eh.HttpQueryHandler
	QueryRepository *SchoolYearQueryRepository `json:"queryRepository" eh:"optional"`
}

func NewSchoolYearHttpQueryHandler

func NewSchoolYearHttpQueryHandler(queryRepository *SchoolYearQueryRepository) (ret *SchoolYearHttpQueryHandler)

func (*SchoolYearHttpQueryHandler) CountAll

func (*SchoolYearHttpQueryHandler) CountById

func (*SchoolYearHttpQueryHandler) ExistAll

func (*SchoolYearHttpQueryHandler) ExistById

func (*SchoolYearHttpQueryHandler) FindAll

func (*SchoolYearHttpQueryHandler) FindById

type SchoolYearInitialExecutor

type SchoolYearInitialExecutor struct {
}

func NewSchoolYearInitialExecutor

func NewSchoolYearInitialExecutor() (ret *SchoolYearInitialExecutor)

type SchoolYearInitialHandler

type SchoolYearInitialHandler struct {
}

func NewSchoolYearInitialHandler

func NewSchoolYearInitialHandler() (ret *SchoolYearInitialHandler)

func (*SchoolYearInitialHandler) Apply

func (o *SchoolYearInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)

func (*SchoolYearInitialHandler) SetupEventHandler

func (o *SchoolYearInitialHandler) SetupEventHandler() (err error)

type SchoolYearQueryRepository

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

func NewSchoolYearQueryRepository

func NewSchoolYearQueryRepository(repo eventhorizon.ReadRepo, context context.Context) (ret *SchoolYearQueryRepository)

func (*SchoolYearQueryRepository) CountAll

func (o *SchoolYearQueryRepository) CountAll() (ret int, err error)

func (*SchoolYearQueryRepository) CountById

func (o *SchoolYearQueryRepository) CountById(id uuid.UUID) (ret int, err error)

func (*SchoolYearQueryRepository) ExistAll

func (o *SchoolYearQueryRepository) ExistAll() (ret bool, err error)

func (*SchoolYearQueryRepository) ExistById

func (o *SchoolYearQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)

func (*SchoolYearQueryRepository) FindAll

func (o *SchoolYearQueryRepository) FindAll() (ret []*SchoolYear, err error)

func (*SchoolYearQueryRepository) FindById

func (o *SchoolYearQueryRepository) FindById(id uuid.UUID) (ret *SchoolYear, err error)

type SchoolYearRouter

type SchoolYearRouter struct {
	PathPrefix     string                        `json:"pathPrefix" eh:"optional"`
	QueryHandler   *SchoolYearHttpQueryHandler   `json:"queryHandler" eh:"optional"`
	CommandHandler *SchoolYearHttpCommandHandler `json:"commandHandler" eh:"optional"`
	Router         *mux.Router                   `json:"router" eh:"optional"`
}

func NewSchoolYearRouter

func NewSchoolYearRouter(pathPrefix string, context context.Context, commandBus eventhorizon.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *SchoolYearRouter)

func (*SchoolYearRouter) Setup

func (o *SchoolYearRouter) Setup(router *mux.Router) (err error)

type SchoolYearUpdated

type SchoolYearUpdated struct {
	Name  string       `json:"name" eh:"optional"`
	Start *time.Time   `json:"start" eh:"optional"`
	End   *time.Time   `json:"end" eh:"optional"`
	Dates []*time.Time `json:"dates" eh:"optional"`
	Id    uuid.UUID    `json:"id" eh:"optional"`
}

func (*SchoolYearUpdated) AddToDates

func (o *SchoolYearUpdated) AddToDates(item *time.Time) *time.Time

type StudentCli

type StudentCli struct {
	AttendanceCli        *AttendanceCli        `json:"attendanceCli" eh:"optional"`
	CourseCli            *CourseCli            `json:"courseCli" eh:"optional"`
	GradeCli             *GradeCli             `json:"gradeCli" eh:"optional"`
	GroupCli             *GroupCli             `json:"groupCli" eh:"optional"`
	SchoolApplicationCli *SchoolApplicationCli `json:"schoolApplicationCli" eh:"optional"`
	SchoolYearCli        *SchoolYearCli        `json:"schoolYearCli" eh:"optional"`
}

func NewStudentCli

func NewStudentCli() (ret *StudentCli)

type StudentClient

type StudentClient struct {
	Url                     string                   `json:"url" eh:"optional"`
	Client                  *http.Client             `json:"client" eh:"optional"`
	AttendanceClient        *AttendanceClient        `json:"attendanceClient" eh:"optional"`
	CourseClient            *CourseClient            `json:"courseClient" eh:"optional"`
	GradeClient             *GradeClient             `json:"gradeClient" eh:"optional"`
	GroupClient             *GroupClient             `json:"groupClient" eh:"optional"`
	SchoolApplicationClient *SchoolApplicationClient `json:"schoolApplicationClient" eh:"optional"`
	SchoolYearClient        *SchoolYearClient        `json:"schoolYearClient" eh:"optional"`
}

func NewStudentClient

func NewStudentClient(url string, client *http.Client) (ret *StudentClient)

type StudentEventhorizonInitializer

type StudentEventhorizonInitializer struct {
	AttendanceAggregateInitializer        *AttendanceAggregateInitializer        `json:"attendanceAggregateInitializer" eh:"optional"`
	CourseAggregateInitializer            *CourseAggregateInitializer            `json:"courseAggregateInitializer" eh:"optional"`
	GradeAggregateInitializer             *GradeAggregateInitializer             `json:"gradeAggregateInitializer" eh:"optional"`
	GroupAggregateInitializer             *GroupAggregateInitializer             `json:"groupAggregateInitializer" eh:"optional"`
	SchoolApplicationAggregateInitializer *SchoolApplicationAggregateInitializer `json:"schoolApplicationAggregateInitializer" eh:"optional"`
	SchoolYearAggregateInitializer        *SchoolYearAggregateInitializer        `json:"schoolYearAggregateInitializer" eh:"optional"`
	// contains filtered or unexported fields
}

func NewStudentEventhorizonInitializer

func NewStudentEventhorizonInitializer(eventStore eventhorizon.EventStore, eventBus eventhorizon.EventBus, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *StudentEventhorizonInitializer)

func (*StudentEventhorizonInitializer) Setup

func (o *StudentEventhorizonInitializer) Setup() (err error)

type StudentRouter

type StudentRouter struct {
	PathPrefix              string                   `json:"pathPrefix" eh:"optional"`
	AttendanceRouter        *AttendanceRouter        `json:"attendanceRouter" eh:"optional"`
	CourseRouter            *CourseRouter            `json:"courseRouter" eh:"optional"`
	GradeRouter             *GradeRouter             `json:"gradeRouter" eh:"optional"`
	GroupRouter             *GroupRouter             `json:"groupRouter" eh:"optional"`
	SchoolApplicationRouter *SchoolApplicationRouter `json:"schoolApplicationRouter" eh:"optional"`
	SchoolYearRouter        *SchoolYearRouter        `json:"schoolYearRouter" eh:"optional"`
	Router                  *mux.Router              `json:"router" eh:"optional"`
}

func NewStudentRouter

func NewStudentRouter(pathPrefix string, context context.Context, commandBus *bus.CommandHandler,
	readRepos func(string, func() (ret eventhorizon.Entity)) (ret eventhorizon.ReadWriteRepo)) (ret *StudentRouter)

func (*StudentRouter) Setup

func (o *StudentRouter) Setup(router *mux.Router) (err error)

type UpdateAttendance

type UpdateAttendance struct {
	Student *person.Profile  `json:"student" eh:"optional"`
	Date    *time.Time       `json:"date" eh:"optional"`
	Course  *Course          `json:"course" eh:"optional"`
	Hours   int              `json:"hours" eh:"optional"`
	State   *AttendanceState `json:"state" eh:"optional"`
	Token   string           `json:"token" eh:"optional"`
	Id      uuid.UUID        `json:"id" eh:"optional"`
}

func (*UpdateAttendance) AggregateID

func (o *UpdateAttendance) AggregateID() uuid.UUID

func (*UpdateAttendance) AggregateType

func (o *UpdateAttendance) AggregateType() eventhorizon.AggregateType

func (*UpdateAttendance) CommandType

func (o *UpdateAttendance) CommandType() eventhorizon.CommandType

type UpdateCourse

type UpdateCourse struct {
	Name        string             `json:"name" eh:"optional"`
	Begin       *time.Time         `json:"begin" eh:"optional"`
	End         *time.Time         `json:"end" eh:"optional"`
	Teacher     *person.PersonName `json:"teacher" eh:"optional"`
	SchoolYear  *SchoolYear        `json:"schoolYear" eh:"optional"`
	Fee         float64            `json:"fee" eh:"optional"`
	Description string             `json:"description" eh:"optional"`
	Id          uuid.UUID          `json:"id" eh:"optional"`
}

func (*UpdateCourse) AggregateID

func (o *UpdateCourse) AggregateID() uuid.UUID

func (*UpdateCourse) AggregateType

func (o *UpdateCourse) AggregateType() eventhorizon.AggregateType

func (*UpdateCourse) CommandType

func (o *UpdateCourse) CommandType() eventhorizon.CommandType

type UpdateGrade

type UpdateGrade struct {
	Student *person.Profile `json:"student" eh:"optional"`
	Course  *Course         `json:"course" eh:"optional"`
	Grade   float64         `json:"grade" eh:"optional"`
	Comment string          `json:"comment" eh:"optional"`
	Id      uuid.UUID       `json:"id" eh:"optional"`
}

func (*UpdateGrade) AggregateID

func (o *UpdateGrade) AggregateID() uuid.UUID

func (*UpdateGrade) AggregateType

func (o *UpdateGrade) AggregateType() eventhorizon.AggregateType

func (*UpdateGrade) CommandType

func (o *UpdateGrade) CommandType() eventhorizon.CommandType

type UpdateGroup

type UpdateGroup struct {
	Name           string            `json:"name" eh:"optional"`
	Category       *GroupCategory    `json:"category" eh:"optional"`
	SchoolYear     *SchoolYear       `json:"schoolYear" eh:"optional"`
	Representative *person.Profile   `json:"representative" eh:"optional"`
	Students       []*person.Profile `json:"students" eh:"optional"`
	Courses        []*Course         `json:"courses" eh:"optional"`
	Id             uuid.UUID         `json:"id" eh:"optional"`
}

func (*UpdateGroup) AddToCourses

func (o *UpdateGroup) AddToCourses(item *Course) *Course

func (*UpdateGroup) AddToStudents

func (o *UpdateGroup) AddToStudents(item *person.Profile) *person.Profile

func (*UpdateGroup) AggregateID

func (o *UpdateGroup) AggregateID() uuid.UUID

func (*UpdateGroup) AggregateType

func (o *UpdateGroup) AggregateType() eventhorizon.AggregateType

func (*UpdateGroup) CommandType

func (o *UpdateGroup) CommandType() eventhorizon.CommandType

type UpdateSchoolApplication

type UpdateSchoolApplication struct {
	Profile             *person.Profile    `json:"profile" eh:"optional"`
	ChurchContactPerson *person.PersonName `json:"churchContactPerson" eh:"optional"`
	ChurchContact       *person.Contact    `json:"churchContact" eh:"optional"`
	ChurchCommitment    bool               `json:"churchCommitment" eh:"optional"`
	SchoolYear          *SchoolYear        `json:"schoolYear" eh:"optional"`
	Group               string             `json:"group" eh:"optional"`
	Id                  uuid.UUID          `json:"id" eh:"optional"`
}

func (*UpdateSchoolApplication) AggregateID

func (o *UpdateSchoolApplication) AggregateID() uuid.UUID

func (*UpdateSchoolApplication) AggregateType

func (*UpdateSchoolApplication) CommandType

type UpdateSchoolYear

type UpdateSchoolYear struct {
	Name  string       `json:"name" eh:"optional"`
	Start *time.Time   `json:"start" eh:"optional"`
	End   *time.Time   `json:"end" eh:"optional"`
	Dates []*time.Time `json:"dates" eh:"optional"`
	Id    uuid.UUID    `json:"id" eh:"optional"`
}

func (*UpdateSchoolYear) AddToDates

func (o *UpdateSchoolYear) AddToDates(item *time.Time) *time.Time

func (*UpdateSchoolYear) AggregateID

func (o *UpdateSchoolYear) AggregateID() uuid.UUID

func (*UpdateSchoolYear) AggregateType

func (o *UpdateSchoolYear) AggregateType() eventhorizon.AggregateType

func (*UpdateSchoolYear) CommandType

func (o *UpdateSchoolYear) CommandType() eventhorizon.CommandType

Jump to

Keyboard shortcuts

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