Documentation ¶
Index ¶
- Constants
- func AttendanceCommandTypes() *attendanceCommandTypes
- func AttendanceEventTypes() *attendanceEventTypes
- func AttendanceStates() *attendanceStates
- func CourseCommandTypes() *courseCommandTypes
- func CourseEventTypes() *courseEventTypes
- func GradeCommandTypes() *gradeCommandTypes
- func GradeEventTypes() *gradeEventTypes
- func GroupCategorys() *groupCategorys
- func GroupCommandTypes() *groupCommandTypes
- func GroupEventTypes() *groupEventTypes
- func SchoolApplicationCommandTypes() *schoolApplicationCommandTypes
- func SchoolApplicationEventTypes() *schoolApplicationEventTypes
- func SchoolYearCommandTypes() *schoolYearCommandTypes
- func SchoolYearEventTypes() *schoolYearEventTypes
- type Attendance
- type AttendanceAggregateInitializer
- type AttendanceCanceled
- type AttendanceCli
- type AttendanceClient
- type AttendanceCommandHandler
- func (o *AttendanceCommandHandler) AddCancelPreparer(preparer func(*CancelAttendance, *Attendance) (err error))
- func (o *AttendanceCommandHandler) AddConfirmPreparer(preparer func(*ConfirmAttendance, *Attendance) (err error))
- func (o *AttendanceCommandHandler) AddCreatePreparer(preparer func(*CreateAttendance, *Attendance) (err error))
- func (o *AttendanceCommandHandler) AddDeletePreparer(preparer func(*DeleteAttendance, *Attendance) (err error))
- func (o *AttendanceCommandHandler) AddRegisterPreparer(preparer func(*RegisterAttendance, *Attendance) (err error))
- func (o *AttendanceCommandHandler) AddUpdatePreparer(preparer func(*UpdateAttendance, *Attendance) (err error))
- func (o *AttendanceCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, ...) (err error)
- func (o *AttendanceCommandHandler) SetupCommandHandler() (err error)
- type AttendanceCommandType
- func (o AttendanceCommandType) GetBSON() (ret interface{}, err error)
- func (o *AttendanceCommandType) IsCancelAttendance() bool
- func (o *AttendanceCommandType) IsConfirmAttendance() bool
- func (o *AttendanceCommandType) IsCreateAttendance() bool
- func (o *AttendanceCommandType) IsDeleteAttendance() bool
- func (o *AttendanceCommandType) IsRegisterAttendance() bool
- func (o *AttendanceCommandType) IsUpdateAttendance() bool
- func (o AttendanceCommandType) MarshalJSON() (ret []byte, err error)
- func (o *AttendanceCommandType) Name() string
- func (o *AttendanceCommandType) Ordinal() int
- func (o *AttendanceCommandType) SetBSON(raw bson.Raw) (err error)
- func (o *AttendanceCommandType) UnmarshalJSON(data []byte) (err error)
- type AttendanceConfirmed
- type AttendanceCreated
- type AttendanceDeleted
- type AttendanceEventHandler
- type AttendanceEventType
- func (o AttendanceEventType) GetBSON() (ret interface{}, err error)
- func (o *AttendanceEventType) IsAttendanceCanceled() bool
- func (o *AttendanceEventType) IsAttendanceConfirmed() bool
- func (o *AttendanceEventType) IsAttendanceCreated() bool
- func (o *AttendanceEventType) IsAttendanceDeleted() bool
- func (o *AttendanceEventType) IsAttendanceRegistered() bool
- func (o *AttendanceEventType) IsAttendanceUpdated() bool
- func (o AttendanceEventType) MarshalJSON() (ret []byte, err error)
- func (o *AttendanceEventType) Name() string
- func (o *AttendanceEventType) Ordinal() int
- func (o *AttendanceEventType) SetBSON(raw bson.Raw) (err error)
- func (o *AttendanceEventType) UnmarshalJSON(data []byte) (err error)
- type AttendanceExecutors
- type AttendanceHandlers
- type AttendanceHttpCommandHandler
- func (o *AttendanceHttpCommandHandler) Cancel(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpCommandHandler) Confirm(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpCommandHandler) Create(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpCommandHandler) Delete(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpCommandHandler) Register(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpCommandHandler) Update(w http.ResponseWriter, r *http.Request)
- type AttendanceHttpQueryHandler
- func (o *AttendanceHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
- func (o *AttendanceHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
- type AttendanceInitialExecutor
- type AttendanceInitialHandler
- type AttendanceQueryRepository
- func (o *AttendanceQueryRepository) CountAll() (ret int, err error)
- func (o *AttendanceQueryRepository) CountById(id uuid.UUID) (ret int, err error)
- func (o *AttendanceQueryRepository) ExistAll() (ret bool, err error)
- func (o *AttendanceQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)
- func (o *AttendanceQueryRepository) FindAll() (ret []*Attendance, err error)
- func (o *AttendanceQueryRepository) FindById(id uuid.UUID) (ret *Attendance, err error)
- type AttendanceRegistered
- type AttendanceRouter
- type AttendanceState
- func (o AttendanceState) GetBSON() (ret interface{}, err error)
- func (o *AttendanceState) IsCanceled() bool
- func (o *AttendanceState) IsConfirmed() bool
- func (o *AttendanceState) IsPresent() bool
- func (o *AttendanceState) IsRegistered() bool
- func (o AttendanceState) MarshalJSON() (ret []byte, err error)
- func (o *AttendanceState) Name() string
- func (o *AttendanceState) Ordinal() int
- func (o *AttendanceState) SetBSON(raw bson.Raw) (err error)
- func (o *AttendanceState) UnmarshalJSON(data []byte) (err error)
- type AttendanceUpdated
- type CancelAttendance
- type ConfirmAttendance
- type Course
- type CourseAggregateInitializer
- type CourseCli
- type CourseClient
- type CourseCommandHandler
- func (o *CourseCommandHandler) AddCreatePreparer(preparer func(*CreateCourse, *Course) (err error))
- func (o *CourseCommandHandler) AddDeletePreparer(preparer func(*DeleteCourse, *Course) (err error))
- func (o *CourseCommandHandler) AddUpdatePreparer(preparer func(*UpdateCourse, *Course) (err error))
- func (o *CourseCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, ...) (err error)
- func (o *CourseCommandHandler) SetupCommandHandler() (err error)
- type CourseCommandType
- func (o CourseCommandType) GetBSON() (ret interface{}, err error)
- func (o *CourseCommandType) IsCreateCourse() bool
- func (o *CourseCommandType) IsDeleteCourse() bool
- func (o *CourseCommandType) IsUpdateCourse() bool
- func (o CourseCommandType) MarshalJSON() (ret []byte, err error)
- func (o *CourseCommandType) Name() string
- func (o *CourseCommandType) Ordinal() int
- func (o *CourseCommandType) SetBSON(raw bson.Raw) (err error)
- func (o *CourseCommandType) UnmarshalJSON(data []byte) (err error)
- type CourseCreated
- type CourseDeleted
- type CourseEventHandler
- type CourseEventType
- func (o CourseEventType) GetBSON() (ret interface{}, err error)
- func (o *CourseEventType) IsCourseCreated() bool
- func (o *CourseEventType) IsCourseDeleted() bool
- func (o *CourseEventType) IsCourseUpdated() bool
- func (o CourseEventType) MarshalJSON() (ret []byte, err error)
- func (o *CourseEventType) Name() string
- func (o *CourseEventType) Ordinal() int
- func (o *CourseEventType) SetBSON(raw bson.Raw) (err error)
- func (o *CourseEventType) UnmarshalJSON(data []byte) (err error)
- type CourseExecutors
- type CourseHandlers
- type CourseHttpCommandHandler
- type CourseHttpQueryHandler
- func (o *CourseHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
- func (o *CourseHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
- func (o *CourseHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
- func (o *CourseHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
- func (o *CourseHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
- func (o *CourseHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
- type CourseInitialExecutor
- type CourseInitialHandler
- type CourseQueryRepository
- func (o *CourseQueryRepository) CountAll() (ret int, err error)
- func (o *CourseQueryRepository) CountById(id uuid.UUID) (ret int, err error)
- func (o *CourseQueryRepository) ExistAll() (ret bool, err error)
- func (o *CourseQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)
- func (o *CourseQueryRepository) FindAll() (ret []*Course, err error)
- func (o *CourseQueryRepository) FindById(id uuid.UUID) (ret *Course, err error)
- type CourseRouter
- type CourseUpdated
- type CreateAttendance
- type CreateCourse
- type CreateGrade
- type CreateGroup
- func (o *CreateGroup) AddToCourses(item *Course) *Course
- func (o *CreateGroup) AddToStudents(item *person.Profile) *person.Profile
- func (o *CreateGroup) AggregateID() uuid.UUID
- func (o *CreateGroup) AggregateType() eventhorizon.AggregateType
- func (o *CreateGroup) CommandType() eventhorizon.CommandType
- type CreateSchoolApplication
- type CreateSchoolYear
- type DeleteAttendance
- type DeleteCourse
- type DeleteGrade
- type DeleteGroup
- type DeleteSchoolApplication
- type DeleteSchoolYear
- type Grade
- type GradeAggregateInitializer
- type GradeCli
- type GradeClient
- type GradeCommandHandler
- func (o *GradeCommandHandler) AddCreatePreparer(preparer func(*CreateGrade, *Grade) (err error))
- func (o *GradeCommandHandler) AddDeletePreparer(preparer func(*DeleteGrade, *Grade) (err error))
- func (o *GradeCommandHandler) AddUpdatePreparer(preparer func(*UpdateGrade, *Grade) (err error))
- func (o *GradeCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, ...) (err error)
- func (o *GradeCommandHandler) SetupCommandHandler() (err error)
- type GradeCommandType
- func (o GradeCommandType) GetBSON() (ret interface{}, err error)
- func (o *GradeCommandType) IsCreateGrade() bool
- func (o *GradeCommandType) IsDeleteGrade() bool
- func (o *GradeCommandType) IsUpdateGrade() bool
- func (o GradeCommandType) MarshalJSON() (ret []byte, err error)
- func (o *GradeCommandType) Name() string
- func (o *GradeCommandType) Ordinal() int
- func (o *GradeCommandType) SetBSON(raw bson.Raw) (err error)
- func (o *GradeCommandType) UnmarshalJSON(data []byte) (err error)
- type GradeCreated
- type GradeDeleted
- type GradeEventHandler
- type GradeEventType
- func (o GradeEventType) GetBSON() (ret interface{}, err error)
- func (o *GradeEventType) IsGradeCreated() bool
- func (o *GradeEventType) IsGradeDeleted() bool
- func (o *GradeEventType) IsGradeUpdated() bool
- func (o GradeEventType) MarshalJSON() (ret []byte, err error)
- func (o *GradeEventType) Name() string
- func (o *GradeEventType) Ordinal() int
- func (o *GradeEventType) SetBSON(raw bson.Raw) (err error)
- func (o *GradeEventType) UnmarshalJSON(data []byte) (err error)
- type GradeExecutors
- type GradeHandlers
- type GradeHttpCommandHandler
- type GradeHttpQueryHandler
- func (o *GradeHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
- func (o *GradeHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
- func (o *GradeHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
- func (o *GradeHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
- func (o *GradeHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
- func (o *GradeHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
- type GradeInitialExecutor
- type GradeInitialHandler
- type GradeQueryRepository
- func (o *GradeQueryRepository) CountAll() (ret int, err error)
- func (o *GradeQueryRepository) CountById(id uuid.UUID) (ret int, err error)
- func (o *GradeQueryRepository) ExistAll() (ret bool, err error)
- func (o *GradeQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)
- func (o *GradeQueryRepository) FindAll() (ret []*Grade, err error)
- func (o *GradeQueryRepository) FindById(id uuid.UUID) (ret *Grade, err error)
- type GradeRouter
- type GradeUpdated
- type Group
- type GroupAggregateInitializer
- type GroupCategory
- func (o GroupCategory) GetBSON() (ret interface{}, err error)
- func (o *GroupCategory) IsCourseGroup() bool
- func (o *GroupCategory) IsYearGroup() bool
- func (o GroupCategory) MarshalJSON() (ret []byte, err error)
- func (o *GroupCategory) Name() string
- func (o *GroupCategory) Ordinal() int
- func (o *GroupCategory) SetBSON(raw bson.Raw) (err error)
- func (o *GroupCategory) UnmarshalJSON(data []byte) (err error)
- type GroupCli
- type GroupClient
- type GroupCommandHandler
- func (o *GroupCommandHandler) AddCreatePreparer(preparer func(*CreateGroup, *Group) (err error))
- func (o *GroupCommandHandler) AddDeletePreparer(preparer func(*DeleteGroup, *Group) (err error))
- func (o *GroupCommandHandler) AddUpdatePreparer(preparer func(*UpdateGroup, *Group) (err error))
- func (o *GroupCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, ...) (err error)
- func (o *GroupCommandHandler) SetupCommandHandler() (err error)
- type GroupCommandType
- func (o GroupCommandType) GetBSON() (ret interface{}, err error)
- func (o *GroupCommandType) IsCreateGroup() bool
- func (o *GroupCommandType) IsDeleteGroup() bool
- func (o *GroupCommandType) IsUpdateGroup() bool
- func (o GroupCommandType) MarshalJSON() (ret []byte, err error)
- func (o *GroupCommandType) Name() string
- func (o *GroupCommandType) Ordinal() int
- func (o *GroupCommandType) SetBSON(raw bson.Raw) (err error)
- func (o *GroupCommandType) UnmarshalJSON(data []byte) (err error)
- type GroupCreated
- type GroupDeleted
- type GroupEventHandler
- type GroupEventType
- func (o GroupEventType) GetBSON() (ret interface{}, err error)
- func (o *GroupEventType) IsGroupCreated() bool
- func (o *GroupEventType) IsGroupDeleted() bool
- func (o *GroupEventType) IsGroupUpdated() bool
- func (o GroupEventType) MarshalJSON() (ret []byte, err error)
- func (o *GroupEventType) Name() string
- func (o *GroupEventType) Ordinal() int
- func (o *GroupEventType) SetBSON(raw bson.Raw) (err error)
- func (o *GroupEventType) UnmarshalJSON(data []byte) (err error)
- type GroupExecutors
- type GroupHandlers
- type GroupHttpCommandHandler
- type GroupHttpQueryHandler
- func (o *GroupHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
- func (o *GroupHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
- func (o *GroupHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
- func (o *GroupHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
- func (o *GroupHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
- func (o *GroupHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
- type GroupInitialExecutor
- type GroupInitialHandler
- type GroupQueryRepository
- func (o *GroupQueryRepository) CountAll() (ret int, err error)
- func (o *GroupQueryRepository) CountById(id uuid.UUID) (ret int, err error)
- func (o *GroupQueryRepository) ExistAll() (ret bool, err error)
- func (o *GroupQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)
- func (o *GroupQueryRepository) FindAll() (ret []*Group, err error)
- func (o *GroupQueryRepository) FindById(id uuid.UUID) (ret *Group, err error)
- type GroupRouter
- type GroupUpdated
- type RegisterAttendance
- type SchoolApplication
- type SchoolApplicationAggregateInitializer
- type SchoolApplicationCli
- type SchoolApplicationClient
- type SchoolApplicationCommandHandler
- func (o *SchoolApplicationCommandHandler) AddCreatePreparer(preparer func(*CreateSchoolApplication, *SchoolApplication) (err error))
- func (o *SchoolApplicationCommandHandler) AddDeletePreparer(preparer func(*DeleteSchoolApplication, *SchoolApplication) (err error))
- func (o *SchoolApplicationCommandHandler) AddUpdatePreparer(preparer func(*UpdateSchoolApplication, *SchoolApplication) (err error))
- func (o *SchoolApplicationCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, ...) (err error)
- func (o *SchoolApplicationCommandHandler) SetupCommandHandler() (err error)
- type SchoolApplicationCommandType
- func (o SchoolApplicationCommandType) GetBSON() (ret interface{}, err error)
- func (o *SchoolApplicationCommandType) IsCreateSchoolApplication() bool
- func (o *SchoolApplicationCommandType) IsDeleteSchoolApplication() bool
- func (o *SchoolApplicationCommandType) IsUpdateSchoolApplication() bool
- func (o SchoolApplicationCommandType) MarshalJSON() (ret []byte, err error)
- func (o *SchoolApplicationCommandType) Name() string
- func (o *SchoolApplicationCommandType) Ordinal() int
- func (o *SchoolApplicationCommandType) SetBSON(raw bson.Raw) (err error)
- func (o *SchoolApplicationCommandType) UnmarshalJSON(data []byte) (err error)
- type SchoolApplicationCreated
- type SchoolApplicationDeleted
- type SchoolApplicationEventHandler
- type SchoolApplicationEventType
- func (o SchoolApplicationEventType) GetBSON() (ret interface{}, err error)
- func (o *SchoolApplicationEventType) IsSchoolApplicationCreated() bool
- func (o *SchoolApplicationEventType) IsSchoolApplicationDeleted() bool
- func (o *SchoolApplicationEventType) IsSchoolApplicationUpdated() bool
- func (o SchoolApplicationEventType) MarshalJSON() (ret []byte, err error)
- func (o *SchoolApplicationEventType) Name() string
- func (o *SchoolApplicationEventType) Ordinal() int
- func (o *SchoolApplicationEventType) SetBSON(raw bson.Raw) (err error)
- func (o *SchoolApplicationEventType) UnmarshalJSON(data []byte) (err error)
- type SchoolApplicationExecutors
- type SchoolApplicationHandlers
- type SchoolApplicationHttpCommandHandler
- type SchoolApplicationHttpQueryHandler
- func (o *SchoolApplicationHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
- func (o *SchoolApplicationHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
- func (o *SchoolApplicationHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
- func (o *SchoolApplicationHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
- func (o *SchoolApplicationHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
- func (o *SchoolApplicationHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
- type SchoolApplicationInitialExecutor
- type SchoolApplicationInitialHandler
- type SchoolApplicationQueryRepository
- func (o *SchoolApplicationQueryRepository) CountAll() (ret int, err error)
- func (o *SchoolApplicationQueryRepository) CountById(id uuid.UUID) (ret int, err error)
- func (o *SchoolApplicationQueryRepository) ExistAll() (ret bool, err error)
- func (o *SchoolApplicationQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)
- func (o *SchoolApplicationQueryRepository) FindAll() (ret []*SchoolApplication, err error)
- func (o *SchoolApplicationQueryRepository) FindById(id uuid.UUID) (ret *SchoolApplication, err error)
- type SchoolApplicationRouter
- type SchoolApplicationUpdated
- type SchoolYear
- type SchoolYearAggregateInitializer
- type SchoolYearCli
- type SchoolYearClient
- type SchoolYearCommandHandler
- func (o *SchoolYearCommandHandler) AddCreatePreparer(preparer func(*CreateSchoolYear, *SchoolYear) (err error))
- func (o *SchoolYearCommandHandler) AddDeletePreparer(preparer func(*DeleteSchoolYear, *SchoolYear) (err error))
- func (o *SchoolYearCommandHandler) AddUpdatePreparer(preparer func(*UpdateSchoolYear, *SchoolYear) (err error))
- func (o *SchoolYearCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, ...) (err error)
- func (o *SchoolYearCommandHandler) SetupCommandHandler() (err error)
- type SchoolYearCommandType
- func (o SchoolYearCommandType) GetBSON() (ret interface{}, err error)
- func (o *SchoolYearCommandType) IsCreateSchoolYear() bool
- func (o *SchoolYearCommandType) IsDeleteSchoolYear() bool
- func (o *SchoolYearCommandType) IsUpdateSchoolYear() bool
- func (o SchoolYearCommandType) MarshalJSON() (ret []byte, err error)
- func (o *SchoolYearCommandType) Name() string
- func (o *SchoolYearCommandType) Ordinal() int
- func (o *SchoolYearCommandType) SetBSON(raw bson.Raw) (err error)
- func (o *SchoolYearCommandType) UnmarshalJSON(data []byte) (err error)
- type SchoolYearCreated
- type SchoolYearDeleted
- type SchoolYearEventHandler
- type SchoolYearEventType
- func (o SchoolYearEventType) GetBSON() (ret interface{}, err error)
- func (o *SchoolYearEventType) IsSchoolYearCreated() bool
- func (o *SchoolYearEventType) IsSchoolYearDeleted() bool
- func (o *SchoolYearEventType) IsSchoolYearUpdated() bool
- func (o SchoolYearEventType) MarshalJSON() (ret []byte, err error)
- func (o *SchoolYearEventType) Name() string
- func (o *SchoolYearEventType) Ordinal() int
- func (o *SchoolYearEventType) SetBSON(raw bson.Raw) (err error)
- func (o *SchoolYearEventType) UnmarshalJSON(data []byte) (err error)
- type SchoolYearExecutors
- type SchoolYearHandlers
- type SchoolYearHttpCommandHandler
- type SchoolYearHttpQueryHandler
- func (o *SchoolYearHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
- func (o *SchoolYearHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
- func (o *SchoolYearHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
- func (o *SchoolYearHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
- func (o *SchoolYearHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
- func (o *SchoolYearHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
- type SchoolYearInitialExecutor
- type SchoolYearInitialHandler
- type SchoolYearQueryRepository
- func (o *SchoolYearQueryRepository) CountAll() (ret int, err error)
- func (o *SchoolYearQueryRepository) CountById(id uuid.UUID) (ret int, err error)
- func (o *SchoolYearQueryRepository) ExistAll() (ret bool, err error)
- func (o *SchoolYearQueryRepository) ExistById(id uuid.UUID) (ret bool, err error)
- func (o *SchoolYearQueryRepository) FindAll() (ret []*SchoolYear, err error)
- func (o *SchoolYearQueryRepository) FindById(id uuid.UUID) (ret *SchoolYear, err error)
- type SchoolYearRouter
- type SchoolYearUpdated
- type StudentCli
- type StudentClient
- type StudentEventhorizonInitializer
- type StudentRouter
- type UpdateAttendance
- type UpdateCourse
- type UpdateGrade
- type UpdateGroup
- func (o *UpdateGroup) AddToCourses(item *Course) *Course
- func (o *UpdateGroup) AddToStudents(item *person.Profile) *person.Profile
- func (o *UpdateGroup) AggregateID() uuid.UUID
- func (o *UpdateGroup) AggregateType() eventhorizon.AggregateType
- func (o *UpdateGroup) CommandType() eventhorizon.CommandType
- type UpdateSchoolApplication
- type UpdateSchoolYear
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 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 (o *AttendanceCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, store eh.AggregateStoreEvent) (err error)
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 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 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 (o *AttendanceHttpCommandHandler) Cancel(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpCommandHandler) Confirm ¶
func (o *AttendanceHttpCommandHandler) Confirm(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpCommandHandler) Create ¶
func (o *AttendanceHttpCommandHandler) Create(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpCommandHandler) Delete ¶
func (o *AttendanceHttpCommandHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpCommandHandler) Register ¶
func (o *AttendanceHttpCommandHandler) Register(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpCommandHandler) Update ¶
func (o *AttendanceHttpCommandHandler) Update(w http.ResponseWriter, r *http.Request)
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 (o *AttendanceHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpQueryHandler) CountById ¶
func (o *AttendanceHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpQueryHandler) ExistAll ¶
func (o *AttendanceHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpQueryHandler) ExistById ¶
func (o *AttendanceHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpQueryHandler) FindAll ¶
func (o *AttendanceHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
func (*AttendanceHttpQueryHandler) FindById ¶
func (o *AttendanceHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
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 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)
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) 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 ¶
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 ¶
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 NewCourseByPropNames ¶
func NewCoursesByPropNames ¶
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 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 (o *CourseCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, store eh.AggregateStoreEvent) (err error)
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) 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 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) 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 (o *CourseHttpCommandHandler) Create(w http.ResponseWriter, r *http.Request)
func (*CourseHttpCommandHandler) Delete ¶
func (o *CourseHttpCommandHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*CourseHttpCommandHandler) Update ¶
func (o *CourseHttpCommandHandler) Update(w http.ResponseWriter, r *http.Request)
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 (o *CourseHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
func (*CourseHttpQueryHandler) CountById ¶
func (o *CourseHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
func (*CourseHttpQueryHandler) ExistAll ¶
func (o *CourseHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
func (*CourseHttpQueryHandler) ExistById ¶
func (o *CourseHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
func (*CourseHttpQueryHandler) FindAll ¶
func (o *CourseHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
func (*CourseHttpQueryHandler) FindById ¶
func (o *CourseHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
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)
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)
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 (o *CreateSchoolApplication) AggregateType() eventhorizon.AggregateType
func (*CreateSchoolApplication) CommandType ¶
func (o *CreateSchoolApplication) CommandType() eventhorizon.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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
func (*DeleteSchoolApplication) AggregateID ¶
func (o *DeleteSchoolApplication) AggregateID() uuid.UUID
func (*DeleteSchoolApplication) AggregateType ¶
func (o *DeleteSchoolApplication) AggregateType() eventhorizon.AggregateType
func (*DeleteSchoolApplication) CommandType ¶
func (o *DeleteSchoolApplication) CommandType() eventhorizon.CommandType
type DeleteSchoolYear ¶
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 NewGradeByPropNames ¶
func NewGradesByPropNames ¶
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 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 (o *GradeCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, store eh.AggregateStoreEvent) (err error)
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) UnmarshalJSON ¶
func (o *GradeCommandType) UnmarshalJSON(data []byte) (err error)
type GradeCreated ¶
type GradeDeleted ¶
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) 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 (o *GradeHttpCommandHandler) Create(w http.ResponseWriter, r *http.Request)
func (*GradeHttpCommandHandler) Delete ¶
func (o *GradeHttpCommandHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*GradeHttpCommandHandler) Update ¶
func (o *GradeHttpCommandHandler) Update(w http.ResponseWriter, r *http.Request)
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 (o *GradeHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
func (*GradeHttpQueryHandler) CountById ¶
func (o *GradeHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
func (*GradeHttpQueryHandler) ExistAll ¶
func (o *GradeHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
func (*GradeHttpQueryHandler) ExistById ¶
func (o *GradeHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
func (*GradeHttpQueryHandler) FindAll ¶
func (o *GradeHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
func (*GradeHttpQueryHandler) FindById ¶
func (o *GradeHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
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)
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)
type GradeUpdated ¶
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 NewGroupByPropNames ¶
func NewGroupsByPropNames ¶
func (*Group) AddToCourses ¶
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) UnmarshalJSON ¶
func (o *GroupCategory) UnmarshalJSON(data []byte) (err error)
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 (o *GroupCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, store eh.AggregateStoreEvent) (err error)
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) 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 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) 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 (o *GroupHttpCommandHandler) Create(w http.ResponseWriter, r *http.Request)
func (*GroupHttpCommandHandler) Delete ¶
func (o *GroupHttpCommandHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*GroupHttpCommandHandler) Update ¶
func (o *GroupHttpCommandHandler) Update(w http.ResponseWriter, r *http.Request)
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 (o *GroupHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
func (*GroupHttpQueryHandler) CountById ¶
func (o *GroupHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
func (*GroupHttpQueryHandler) ExistAll ¶
func (o *GroupHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
func (*GroupHttpQueryHandler) ExistById ¶
func (o *GroupHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
func (*GroupHttpQueryHandler) FindAll ¶
func (o *GroupHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
func (*GroupHttpQueryHandler) FindById ¶
func (o *GroupHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
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)
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)
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 (o *SchoolApplicationCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, store eh.AggregateStoreEvent) (err error)
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 (o *SchoolApplicationCommandType) Name() string
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 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 (o *SchoolApplicationEventHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)
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 (o *SchoolApplicationEventType) Name() string
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 (o *SchoolApplicationHttpCommandHandler) Create(w http.ResponseWriter, r *http.Request)
func (*SchoolApplicationHttpCommandHandler) Delete ¶
func (o *SchoolApplicationHttpCommandHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*SchoolApplicationHttpCommandHandler) Update ¶
func (o *SchoolApplicationHttpCommandHandler) Update(w http.ResponseWriter, r *http.Request)
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 (o *SchoolApplicationHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
func (*SchoolApplicationHttpQueryHandler) CountById ¶
func (o *SchoolApplicationHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
func (*SchoolApplicationHttpQueryHandler) ExistAll ¶
func (o *SchoolApplicationHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
func (*SchoolApplicationHttpQueryHandler) ExistById ¶
func (o *SchoolApplicationHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
func (*SchoolApplicationHttpQueryHandler) FindAll ¶
func (o *SchoolApplicationHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
func (*SchoolApplicationHttpQueryHandler) FindById ¶
func (o *SchoolApplicationHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
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 (o *SchoolApplicationInitialHandler) Apply(event eventhorizon.Event, entity eventhorizon.Entity) (err error)
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 ¶
func (o *SchoolApplicationQueryRepository) FindById(id uuid.UUID) (ret *SchoolApplication, err error)
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)
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 (o *SchoolYearCommandHandler) Execute(cmd eventhorizon.Command, entity eventhorizon.Entity, store eh.AggregateStoreEvent) (err error)
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 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 (o *SchoolYearHttpCommandHandler) Create(w http.ResponseWriter, r *http.Request)
func (*SchoolYearHttpCommandHandler) Delete ¶
func (o *SchoolYearHttpCommandHandler) Delete(w http.ResponseWriter, r *http.Request)
func (*SchoolYearHttpCommandHandler) Update ¶
func (o *SchoolYearHttpCommandHandler) Update(w http.ResponseWriter, r *http.Request)
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 (o *SchoolYearHttpQueryHandler) CountAll(w http.ResponseWriter, r *http.Request)
func (*SchoolYearHttpQueryHandler) CountById ¶
func (o *SchoolYearHttpQueryHandler) CountById(w http.ResponseWriter, r *http.Request)
func (*SchoolYearHttpQueryHandler) ExistAll ¶
func (o *SchoolYearHttpQueryHandler) ExistAll(w http.ResponseWriter, r *http.Request)
func (*SchoolYearHttpQueryHandler) ExistById ¶
func (o *SchoolYearHttpQueryHandler) ExistById(w http.ResponseWriter, r *http.Request)
func (*SchoolYearHttpQueryHandler) FindAll ¶
func (o *SchoolYearHttpQueryHandler) FindAll(w http.ResponseWriter, r *http.Request)
func (*SchoolYearHttpQueryHandler) FindById ¶
func (o *SchoolYearHttpQueryHandler) FindById(w http.ResponseWriter, r *http.Request)
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)
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)
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 (o *UpdateSchoolApplication) AggregateType() eventhorizon.AggregateType
func (*UpdateSchoolApplication) CommandType ¶
func (o *UpdateSchoolApplication) CommandType() eventhorizon.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
Click to show internal directories.
Click to hide internal directories.