commands

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2026 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

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 CreateLine

func CreateLine(repository CreateLineRepositoryPort) cqrs.CommandHandlerFunc

func IncreaseProduction

func IncreaseProduction(repository IncreaseProductionRepository) cqrs.CommandHandlerFunc

Types

type AddEquipmentToLineCommand

type AddEquipmentToLineCommand struct {
	ID          lines.ID     `json:"id"`
	EquipmentID equipment.ID `json:"equipment_id"`
}

func (AddEquipmentToLineCommand) Type

type AddEquipmentToLineRepositoryPort

type AddEquipmentToLineRepositoryPort interface {
	lines.Reader
	lines.Saver
}

type CreateEquipmentCommand

type CreateEquipmentCommand struct {
	ID       equipment.ID       `json:"id"`
	Name     equipment.Name     `json:"name"`
	Category equipment.Category `json:"category"`
}

func (CreateEquipmentCommand) Type

type CreateEquipmentRepositoryPort

type CreateEquipmentRepositoryPort interface {
	equipment.Saver
}

type CreateLineCommand

type CreateLineCommand struct {
	ID   lines.ID   `json:"id"`
	Name lines.Name `json:"name"`
}

func (CreateLineCommand) Type

type CreateLineRepositoryPort

type CreateLineRepositoryPort interface {
	lines.Saver
}

type CreateQualificationRuleCommand

type CreateQualificationRuleCommand struct {
	EquipmentID     equipment.ID      `json:"equipment_id"`
	SpecificationID specifications.ID `json:"specification_id"`
}

func (CreateQualificationRuleCommand) Type

type CreateSpecificationCommand

type CreateSpecificationCommand struct {
	ID          specifications.ID          `json:"id"`
	Code        specifications.Code        `json:"code"`
	Description specifications.Description `json:"description"`
}

func (CreateSpecificationCommand) Type

type CreateSpecificationRepositoryPort

type CreateSpecificationRepositoryPort interface {
	specifications.Saver
}

type DeprecateSpecificationCommand

type DeprecateSpecificationCommand struct {
	ID specifications.ID `json:"id"`
}

func (DeprecateSpecificationCommand) Type

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

type FinishIntervalRepositoryPort

type FinishIntervalRepositoryPort interface {
	intervals.Reader
	intervals.Saver
}

type FinishWorkshiftCommand

type FinishWorkshiftCommand struct {
	FinishedAt time.Time `json:"finished_at"`
}

func (FinishWorkshiftCommand) Type

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

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

type MoveEquipmentInLineRepositoryPort

type MoveEquipmentInLineRepositoryPort interface {
	lines.Reader
	lines.Saver
}

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

type RemoveEquipmentFromLineCommand

type RemoveEquipmentFromLineCommand struct {
	ID          lines.ID     `json:"id"`
	EquipmentID equipment.ID `json:"equipment_id"`
}

func (RemoveEquipmentFromLineCommand) Type

type RemoveEquipmentFromLineRepositoryPort

type RemoveEquipmentFromLineRepositoryPort interface {
	lines.Reader
	lines.Saver
}

type RemoveQualificationRuleCommand

type RemoveQualificationRuleCommand struct {
	EquipmentID     equipment.ID      `json:"equipment_id"`
	SpecificationID specifications.ID `json:"specification_id"`
}

func (RemoveQualificationRuleCommand) Type

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

type StartIntervalRepositoryPort

type StartIntervalRepositoryPort interface {
	intervals.Reader
	intervals.Saver
}

type StartWorkshiftCommand

type StartWorkshiftCommand struct {
	ID        workshifts.ID   `json:"id"`
	Name      workshifts.Name `json:"name"`
	StartedAt time.Time       `json:"started_at"`
}

func (StartWorkshiftCommand) Type

type StartWorkshiftRepositoryPort

type StartWorkshiftRepositoryPort interface {
	workshifts.Reader
	workshifts.Saver
}

Jump to

Keyboard shortcuts

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