producer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2026 License: Apache-2.0 Imports: 20 Imported by: 1 module, 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

This section is empty.

Variables

This section is empty.

Functions

func NewExecutionDispatcher

func NewExecutionDispatcher(enqueuer queue.Enqueuer) (*executionDispatcher, error)

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,
		verificationDocument 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

func NewEmailProducer(enqueuer queue.Enqueuer, tokenCipher crypto.AES256) (EmailProducer, error)

func NewEmailProducerForQueue

func NewEmailProducerForQueue(enqueuer queue.Enqueuer, tokenCipher crypto.AES256, queueName string) (EmailProducer, error)

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

func NewEventProducer(enqueuer queue.Enqueuer, clk clock.Clock) (EventProducer, error)

type EventRecordJob

type EventRecordJob struct {
	Queued    queue.QueuedJob
	EventSlug slug.Slug
}

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

Jump to

Keyboard shortcuts

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