Documentation
¶
Index ¶
- Constants
- func AddEquipmentToLine(repository AddEquipmentToLineRepositoryPort) cqrs.CommandHandlerFunc
- func CreateEquipment(repository CreateEquipmentRepositoryPort) cqrs.CommandHandlerFunc
- func CreateLine(repository CreateLineRepositoryPort) cqrs.CommandHandlerFunc
- func CreateQualificationRule(repository CreateQualificationRuleRepositoryPort) cqrs.CommandHandlerFunc
- func CreateSpecification(repository CreateSpecificationRepositoryPort) cqrs.CommandHandlerFunc
- func DeprecateSpecification(repository DeprecateSpecificationRepositoryPort) cqrs.CommandHandlerFunc
- func FinishInterval(repository FinishIntervalRepositoryPort) cqrs.CommandHandlerFunc
- func FinishWorkshift(repository FinishWorkshiftRepositoryPort) cqrs.CommandHandlerFunc
- func IncreaseProduction(repository IncreaseProductionRepository) cqrs.CommandHandlerFunc
- func MoveEquipmentInLine(repository MoveEquipmentInLineRepositoryPort) cqrs.CommandHandlerFunc
- func QualifyDowntime(repository QualifyDowntimeRepositoryPort) cqrs.CommandHandlerFunc
- func RemoveEquipmentFromLine(repository RemoveEquipmentFromLineRepositoryPort) cqrs.CommandHandlerFunc
- func RemoveQualificationRule(repository RemoveQualificationRuleRepositoryPort) cqrs.CommandHandlerFunc
- func StartInterval(repository StartIntervalRepositoryPort) cqrs.CommandHandlerFunc
- func StartWorkshift(repository StartWorkshiftRepositoryPort) cqrs.CommandHandlerFunc
- type AddEquipmentToLineCommand
- type AddEquipmentToLineRepositoryPort
- type CreateEquipmentCommand
- type CreateEquipmentRepositoryPort
- type CreateLineCommand
- type CreateLineRepositoryPort
- type CreateQualificationRuleCommand
- type CreateQualificationRuleRepositoryPort
- type CreateSpecificationCommand
- type CreateSpecificationRepositoryPort
- type DeprecateSpecificationCommand
- type DeprecateSpecificationRepositoryPort
- type FinishIntervalCommand
- type FinishIntervalRepositoryPort
- type FinishWorkshiftCommand
- type FinishWorkshiftRepositoryPort
- type IncreaseProductionCommand
- type IncreaseProductionRepository
- type MoveEquipmentInLineCommand
- type MoveEquipmentInLineRepositoryPort
- type QualifyDowntimeCommand
- type QualifyDowntimeRepositoryPort
- type RemoveEquipmentFromLineCommand
- type RemoveEquipmentFromLineRepositoryPort
- type RemoveQualificationRuleCommand
- type RemoveQualificationRuleRepositoryPort
- type StartIntervalCommand
- type StartIntervalRepositoryPort
- type StartWorkshiftCommand
- type StartWorkshiftRepositoryPort
Constants ¶
View Source
const CommandTypeAddEquipmentToLine = cqrs.CommandType("add_equipment_to_line")
View Source
const CommandTypeCreateEquipment = cqrs.CommandType("create_equipment")
View Source
const CommandTypeCreateLine = cqrs.CommandType("create_line")
View Source
const CommandTypeCreateQualificationRule = cqrs.CommandType("create_qualification_rule")
View Source
const CommandTypeCreateSpecification = cqrs.CommandType("create_specification")
View Source
const CommandTypeDeprecateSpecification = cqrs.CommandType("deprecate_specification")
View Source
const CommandTypeFinishInterval = cqrs.CommandType("finish_interval")
View Source
const CommandTypeFinishWorkshift = cqrs.CommandType("finish_workshift")
View Source
const CommandTypeIncreaseProduction = cqrs.CommandType("increase_production")
View Source
const CommandTypeMoveEquipmentInLine = cqrs.CommandType("move_equipment_in_line")
View Source
const CommandTypeQualifyDowntime = cqrs.CommandType("qualify_downtime")
View Source
const CommandTypeRemoveEquipmentFromLine = cqrs.CommandType("remove_equipment_from_line")
View Source
const CommandTypeRemoveQualificationRule = cqrs.CommandType("remove_qualification_rule")
View Source
const CommandTypeStartInterval = cqrs.CommandType("start_interval")
View Source
const CommandTypeStartWorkshift = cqrs.CommandType("start_workshift")
Variables ¶
This section is empty.
Functions ¶
func AddEquipmentToLine ¶
func AddEquipmentToLine(repository AddEquipmentToLineRepositoryPort) cqrs.CommandHandlerFunc
func CreateEquipment ¶
func CreateEquipment(repository CreateEquipmentRepositoryPort) cqrs.CommandHandlerFunc
func CreateLine ¶
func CreateLine(repository CreateLineRepositoryPort) cqrs.CommandHandlerFunc
func CreateQualificationRule ¶
func CreateQualificationRule(repository CreateQualificationRuleRepositoryPort) cqrs.CommandHandlerFunc
func CreateSpecification ¶
func CreateSpecification(repository CreateSpecificationRepositoryPort) cqrs.CommandHandlerFunc
func DeprecateSpecification ¶
func DeprecateSpecification(repository DeprecateSpecificationRepositoryPort) cqrs.CommandHandlerFunc
func FinishInterval ¶
func FinishInterval(repository FinishIntervalRepositoryPort) cqrs.CommandHandlerFunc
func FinishWorkshift ¶
func FinishWorkshift(repository FinishWorkshiftRepositoryPort) cqrs.CommandHandlerFunc
func IncreaseProduction ¶
func IncreaseProduction(repository IncreaseProductionRepository) cqrs.CommandHandlerFunc
func MoveEquipmentInLine ¶
func MoveEquipmentInLine(repository MoveEquipmentInLineRepositoryPort) cqrs.CommandHandlerFunc
func QualifyDowntime ¶
func QualifyDowntime(repository QualifyDowntimeRepositoryPort) cqrs.CommandHandlerFunc
func RemoveEquipmentFromLine ¶
func RemoveEquipmentFromLine(repository RemoveEquipmentFromLineRepositoryPort) cqrs.CommandHandlerFunc
func RemoveQualificationRule ¶
func RemoveQualificationRule(repository RemoveQualificationRuleRepositoryPort) cqrs.CommandHandlerFunc
func StartInterval ¶
func StartInterval(repository StartIntervalRepositoryPort) cqrs.CommandHandlerFunc
func StartWorkshift ¶
func StartWorkshift(repository StartWorkshiftRepositoryPort) cqrs.CommandHandlerFunc
Types ¶
type AddEquipmentToLineCommand ¶
type AddEquipmentToLineCommand struct {
ID lines.ID `json:"id"`
EquipmentID equipment.ID `json:"equipment_id"`
}
func (AddEquipmentToLineCommand) Type ¶
func (c AddEquipmentToLineCommand) Type() cqrs.CommandType
type CreateEquipmentCommand ¶
type CreateEquipmentCommand struct {
ID equipment.ID `json:"id"`
Name equipment.Name `json:"name"`
Category equipment.Category `json:"category"`
}
func (CreateEquipmentCommand) Type ¶
func (c CreateEquipmentCommand) Type() cqrs.CommandType
type CreateLineCommand ¶
func (CreateLineCommand) Type ¶
func (c CreateLineCommand) Type() cqrs.CommandType
type CreateQualificationRuleCommand ¶
type CreateQualificationRuleCommand struct {
EquipmentID equipment.ID `json:"equipment_id"`
SpecificationID specifications.ID `json:"specification_id"`
}
func (CreateQualificationRuleCommand) Type ¶
func (c CreateQualificationRuleCommand) Type() cqrs.CommandType
type CreateQualificationRuleRepositoryPort ¶
type CreateQualificationRuleRepositoryPort interface {
qualification.SpecificationReader
qualification.Reader
qualification.Saver
}
type CreateSpecificationCommand ¶
type CreateSpecificationCommand struct {
ID specifications.ID `json:"id"`
Code specifications.Code `json:"code"`
Description specifications.Description `json:"description"`
}
func (CreateSpecificationCommand) Type ¶
func (c CreateSpecificationCommand) Type() cqrs.CommandType
type CreateSpecificationRepositoryPort ¶
type CreateSpecificationRepositoryPort interface {
specifications.Saver
}
type DeprecateSpecificationCommand ¶
type DeprecateSpecificationCommand struct {
ID specifications.ID `json:"id"`
}
func (DeprecateSpecificationCommand) Type ¶
func (c DeprecateSpecificationCommand) Type() cqrs.CommandType
type DeprecateSpecificationRepositoryPort ¶
type DeprecateSpecificationRepositoryPort interface {
specifications.Reader
specifications.Saver
}
type FinishIntervalCommand ¶
type FinishIntervalCommand struct {
EquipmentID equipment.ID `json:"equipment_id"`
FinishedAt time.Time `json:"finished_at"`
}
func (FinishIntervalCommand) Type ¶
func (c FinishIntervalCommand) Type() cqrs.CommandType
type FinishWorkshiftCommand ¶
func (FinishWorkshiftCommand) Type ¶
func (c FinishWorkshiftCommand) Type() cqrs.CommandType
type FinishWorkshiftRepositoryPort ¶
type FinishWorkshiftRepositoryPort interface {
workshifts.Reader
workshifts.Saver
}
type IncreaseProductionCommand ¶
type IncreaseProductionCommand struct {
EquipmentID equipment.ID `json:"equipment_id"`
Category production.Category `json:"category"`
Amount production.Amount `json:"amount"`
}
func (IncreaseProductionCommand) Type ¶
func (c IncreaseProductionCommand) Type() cqrs.CommandType
type IncreaseProductionRepository ¶
type IncreaseProductionRepository interface {
production.Reader
production.Saver
}
type MoveEquipmentInLineCommand ¶
type MoveEquipmentInLineCommand struct {
ID lines.ID `json:"id"`
EquipmentID equipment.ID `json:"equipment_id"`
Direction lines.Direction `json:"direction"`
}
func (MoveEquipmentInLineCommand) Type ¶
func (c MoveEquipmentInLineCommand) Type() cqrs.CommandType
type QualifyDowntimeCommand ¶
type QualifyDowntimeCommand struct {
DowntimeID intervals.ID `json:"downtime_id"`
SpecificationID specifications.ID `json:"specification_id"`
Comment qualification.Comment `json:"comment"`
}
func (QualifyDowntimeCommand) Type ¶
func (c QualifyDowntimeCommand) Type() cqrs.CommandType
type QualifyDowntimeRepositoryPort ¶
type QualifyDowntimeRepositoryPort interface {
qualification.DowntimeReader
qualification.Reader
qualification.Saver
}
type RemoveEquipmentFromLineCommand ¶
type RemoveEquipmentFromLineCommand struct {
ID lines.ID `json:"id"`
EquipmentID equipment.ID `json:"equipment_id"`
}
func (RemoveEquipmentFromLineCommand) Type ¶
func (c RemoveEquipmentFromLineCommand) Type() cqrs.CommandType
type RemoveQualificationRuleCommand ¶
type RemoveQualificationRuleCommand struct {
EquipmentID equipment.ID `json:"equipment_id"`
SpecificationID specifications.ID `json:"specification_id"`
}
func (RemoveQualificationRuleCommand) Type ¶
func (c RemoveQualificationRuleCommand) Type() cqrs.CommandType
type RemoveQualificationRuleRepositoryPort ¶
type RemoveQualificationRuleRepositoryPort interface {
qualification.Reader
qualification.Saver
}
type StartIntervalCommand ¶
type StartIntervalCommand struct {
ID intervals.ID `json:"id"`
EquipmentID equipment.ID `json:"equipment_id"`
Category intervals.Category `json:"category"`
StartedAt time.Time `json:"started_at"`
}
func (StartIntervalCommand) Type ¶
func (c StartIntervalCommand) Type() cqrs.CommandType
type StartWorkshiftCommand ¶
type StartWorkshiftCommand struct {
ID workshifts.ID `json:"id"`
Name workshifts.Name `json:"name"`
StartedAt time.Time `json:"started_at"`
}
func (StartWorkshiftCommand) Type ¶
func (c StartWorkshiftCommand) Type() cqrs.CommandType
type StartWorkshiftRepositoryPort ¶
type StartWorkshiftRepositoryPort interface {
workshifts.Reader
workshifts.Saver
}
Source Files
¶
- add_equipment_to_line.go
- create_equipment.go
- create_line.go
- create_qualification_rule.go
- create_specification.go
- deprecate_specification.go
- finish_interval.go
- finish_workshift.go
- increase_production.go
- move_equipment_in_line.go
- qualify_downtime.go
- remove_equipment_from_line.go
- remove_qualification_rule.go
- start_interval.go
- start_workshift.go
Click to show internal directories.
Click to hide internal directories.