Documentation ¶
Overview ¶
Package runs initialises the runs event stream consumer and producer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrUnknownConsumerType = fmt.Errorf("unknown consumer type")
ErrUnknownConsumerType is returned when the consumer type is unknown.
Functions ¶
Types ¶
type ConsumerType ¶
type ConsumerType string
ConsumerType represents the consumer type.
const (
ConsumerTypeLocal ConsumerType = "local"
)
Different consumer types.
type Processor ¶
type Processor interface { // Process processes a run. Process(runID uuid.UUID) (uuid.UUID, error) }
Processor processes runs.
func NewProcessor ¶
func NewProcessor(completionsProducer events.Producer[uuid.UUID], scenarioRepository repository.Scenario, runRepository repository.Run) Processor
NewProcessor creates a new run processor.
Click to show internal directories.
Click to hide internal directories.