Documentation ¶
Overview ¶
Package completions initialises the completions event stream consumer and producer.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type ConsumerType ¶
type ConsumerType string
ConsumerType represents the consumer type.
const (
ConsumerTypeLocal ConsumerType = "local"
)
Different consumer types.
type Notifier ¶
type Notifier interface { // SendCompletion sends a completion message. SendCompletion(ctx context.Context, projectRun *notifierDomain.ProjectRun) error }
Notifier is a notifier which can send completions.
type Opts ¶
type Opts func(*Options)
Opts represents a function that modifies the options.
func WithConsumerType ¶
func WithConsumerType(consumerType ConsumerType) Opts
WithConsumerType sets the consumer type.
type Processor ¶
type Processor interface { // Process processes a run. Process(runID uuid.UUID) (uuid.UUID, error) }
Processor processes runs.
func NewProcessor ¶
func NewProcessor( completionNotifiers []notifiers.Notifier, runRepository repository.Run, projectRepository repository.Project, ) Processor
NewProcessor creates a new processor.
Click to show internal directories.
Click to hide internal directories.