Documentation
¶
Index ¶
- func NewExecutionDispatcher(enqueuer queue.Enqueuer) (*executionDispatcher, error)
- func NewNotificationCandidateProducer(enqueuer queue.Enqueuer) (notificationsvc.CandidateProducer, error)
- func NewNotificationDeliveryProducer(enqueuer queue.Enqueuer) (notificationsvc.NotificationDeliveryProducer, error)
- func NewNotificationDeliveryProducerForQueue(enqueuer queue.Enqueuer, queueName string) (notificationsvc.NotificationDeliveryProducer, error)
- type DataSourceSchemaImportProducer
- type EmailProducer
- type EventProducer
- type EventRecordJob
- type PipelineGitProducer
- type PipelineRetryProducer
- type PipelineRunProducer
- type PipelineScheduleProducer
- type PipelineWebhookProducer
- type ProofPublicationProducer
- type ProofWebhookProducer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewExecutionDispatcher ¶
func NewNotificationCandidateProducer ¶
func NewNotificationCandidateProducer(enqueuer queue.Enqueuer) (notificationsvc.CandidateProducer, error)
func NewNotificationDeliveryProducer ¶
func NewNotificationDeliveryProducer(enqueuer queue.Enqueuer) (notificationsvc.NotificationDeliveryProducer, error)
NewNotificationDeliveryProducer creates a producer for the default delivery queue.
func NewNotificationDeliveryProducerForQueue ¶
func NewNotificationDeliveryProducerForQueue( enqueuer queue.Enqueuer, queueName string, ) (notificationsvc.NotificationDeliveryProducer, error)
NewNotificationDeliveryProducerForQueue creates a producer for tests and custom worker queues.
Types ¶
type DataSourceSchemaImportProducer ¶
type DataSourceSchemaImportProducer interface {
EnqueueDataSourceSchemaImport(
ctx context.Context,
tx postgres.DBTX,
args jobs.DataSourceSchemaImportArgs,
) (queue.QueuedJob, error)
}
DataSourceSchemaImportProducer enqueues data-source schema import work.
func NewDataSourceSchemaImportProducer ¶
func NewDataSourceSchemaImportProducer(enqueuer queue.Enqueuer) (DataSourceSchemaImportProducer, error)
NewDataSourceSchemaImportProducer creates a producer for the default schema import queue.
func NewDataSourceSchemaImportProducerForQueue ¶
func NewDataSourceSchemaImportProducerForQueue( enqueuer queue.Enqueuer, queueName string, ) (DataSourceSchemaImportProducer, error)
NewDataSourceSchemaImportProducerForQueue creates a producer for tests and custom queues.
type EmailProducer ¶
type EmailProducer interface {
EnqueueEmailVerification(
ctx context.Context,
tx postgres.DBTX,
user *model.User,
verificationURL string,
token string,
) (queue.QueuedJob, error)
EnqueuePasswordReset(
ctx context.Context,
tx postgres.DBTX,
user *model.User,
resetURL string,
token string,
) (queue.QueuedJob, error)
EnqueueMemberInvitation(
ctx context.Context,
tx postgres.DBTX,
invitation model.MemberInvitationEmail,
acceptanceURL string,
token string,
) (queue.QueuedJob, error)
EnqueueSessionMFA(
ctx context.Context,
tx postgres.DBTX,
user *model.User,
code string,
) (queue.QueuedJob, error)
EnqueueMessage(
ctx context.Context,
tx postgres.DBTX,
user *model.User,
subject, body string,
) (queue.QueuedJob, error)
EnqueueNotification(
ctx context.Context,
tx postgres.DBTX,
orgSlug slug.Slug,
recipient model.NotificationEmailRecipient,
notification model.NotificationEmail,
alertDeliveryAttemptSlug slug.Slug,
) (queue.QueuedJob, error)
}
EmailProducer enqueues outbound email side effects for background execution.
func NewEmailProducer ¶
type EventProducer ¶
type EventProducer interface {
EnqueueRecord(
ctx context.Context,
tx postgres.DBTX,
orgSlug slug.Slug,
actor model.EventActor,
event eventrecorder.Event,
) (EventRecordJob, bool)
EnqueueRequired(
ctx context.Context,
tx postgres.DBTX,
orgSlug slug.Slug,
actor model.EventActor,
event eventrecorder.Event,
) (EventRecordJob, error)
}
EventProducer enqueues durable event persistence for background execution.
func NewEventProducer ¶
type PipelineGitProducer ¶
type PipelineGitProducer interface {
EnqueueWriteFile(
ctx context.Context,
tx postgres.DBTX,
organizationSlug slug.Slug,
dataSourceSlug slug.Slug,
pipelineSlug slug.Slug,
branch *string,
path string,
content []byte,
commitMessage string,
failIfExists bool,
) (queue.QueuedJob, error)
EnqueueDeleteFile(
ctx context.Context,
tx postgres.DBTX,
organizationSlug slug.Slug,
dataSourceSlug slug.Slug,
pipelineSlug slug.Slug,
branch *string,
path string,
commitMessage string,
) (queue.QueuedJob, error)
EnqueuePublishProposal(
ctx context.Context,
tx postgres.DBTX,
args jobs.PipelineGitPublishProposalArgs,
) (queue.QueuedJob, error)
EnqueueRefreshProposal(
ctx context.Context,
tx postgres.DBTX,
args jobs.PipelineGitRefreshProposalArgs,
) (queue.QueuedJob, error)
}
PipelineGitProducer enqueues pipeline git side effects for background execution.
func NewPipelineGitProducer ¶
func NewPipelineGitProducer(enqueuer queue.Enqueuer) (PipelineGitProducer, error)
func NewPipelineGitProducerForQueue ¶
func NewPipelineGitProducerForQueue(enqueuer queue.Enqueuer, queueName string) (PipelineGitProducer, error)
type PipelineRetryProducer ¶
type PipelineRetryProducer interface {
EnqueueTriggerRetryExecution(
ctx context.Context,
tx postgres.DBTX,
args jobs.PipelineTriggerRetryExecutionArgs,
) (queue.QueuedJob, error)
}
PipelineRetryProducer enqueues trigger retry execution for background workers.
func NewPipelineRetryProducer ¶
func NewPipelineRetryProducer(enqueuer queue.Enqueuer) (PipelineRetryProducer, error)
NewPipelineRetryProducer creates a producer for the default retry queue.
func NewPipelineRetryProducerForQueue ¶
func NewPipelineRetryProducerForQueue(enqueuer queue.Enqueuer, queueName string) (PipelineRetryProducer, error)
NewPipelineRetryProducerForQueue creates a producer for tests and custom worker queues.
type PipelineRunProducer ¶
type PipelineRunProducer interface {
EnqueuePipelineRunExecution(
ctx context.Context,
tx postgres.DBTX,
args jobs.PipelineRunExecutionArgs,
) (queue.QueuedJob, error)
}
PipelineRunProducer enqueues manual/API pipeline run execution for background workers.
func NewPipelineRunProducer ¶
func NewPipelineRunProducer(enqueuer queue.Enqueuer, runs runJobBinder) (PipelineRunProducer, error)
NewPipelineRunProducer creates a producer for the default pipeline run queue.
func NewPipelineRunProducerForQueue ¶
func NewPipelineRunProducerForQueue(enqueuer queue.Enqueuer, runs runJobBinder, queueName string) (PipelineRunProducer, error)
NewPipelineRunProducerForQueue creates a producer for tests and custom worker queues.
type PipelineScheduleProducer ¶
type PipelineScheduleProducer interface {
EnqueueRunFinalization(context.Context, postgres.DBTX, queue.JobArgs) (queue.QueuedJob, error)
EnqueueScheduleFireExecution(
ctx context.Context,
tx postgres.DBTX,
args jobs.PipelineScheduleFireExecutionArgs,
) (queue.QueuedJob, error)
}
PipelineScheduleProducer enqueues scheduled fire execution for background workers.
func NewPipelineScheduleProducer ¶
func NewPipelineScheduleProducer(enqueuer queue.Enqueuer) (PipelineScheduleProducer, error)
NewPipelineScheduleProducer creates a producer for the default schedule queue.
func NewPipelineScheduleProducerForQueue ¶
func NewPipelineScheduleProducerForQueue(enqueuer queue.Enqueuer, queueName string) (PipelineScheduleProducer, error)
NewPipelineScheduleProducerForQueue creates a producer for tests and custom worker queues.
type PipelineWebhookProducer ¶
type PipelineWebhookProducer interface {
EnqueuePipelineWebhookDelivery(context.Context, postgres.DBTX, jobs.PipelineWebhookDeliveryArgs) (queue.QueuedJob, error)
}
func NewPipelineWebhookProducer ¶
func NewPipelineWebhookProducer(enqueuer queue.Enqueuer) (PipelineWebhookProducer, error)
type ProofPublicationProducer ¶
type ProofPublicationProducer struct {
// contains filtered or unexported fields
}
func NewProofPublicationProducer ¶
func NewProofPublicationProducer(enqueuer queue.Enqueuer) (*ProofPublicationProducer, error)
func (*ProofPublicationProducer) EnqueueProofReceipt ¶
func (p *ProofPublicationProducer) EnqueueProofReceipt(ctx context.Context, tx postgres.DBTX, receipt model.ProofReceipt) error
type ProofWebhookProducer ¶
type ProofWebhookProducer struct {
// contains filtered or unexported fields
}
func NewProofWebhookProducer ¶
func NewProofWebhookProducer(enqueuer queue.Enqueuer) (*ProofWebhookProducer, error)
func (*ProofWebhookProducer) EnqueueProofChange ¶
func (p *ProofWebhookProducer) EnqueueProofChange( ctx context.Context, tx postgres.DBTX, event gitprovider.VerifiedChangeEvent, ) (queue.QueuedJob, error)