workers

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2026 License: Apache-2.0 Imports: 33 Imported by: 0

Documentation

Index

Constants

View Source
const InvitationEmailConnectionName = "superplane"
View Source
const InvitationEmailServiceName = "superplane" + "." + messages.WorkflowExchange + "." + messages.InvitationCreatedRoutingKey + ".worker-consumer"
View Source
const NotificationEmailConnectionName = "superplane"
View Source
const NotificationEmailServiceName = "superplane" + "." + messages.WorkflowExchange + "." + messages.NotificationEmailRequestedRoutingKey + ".worker-consumer"

Variables

View Source
var ErrRecordLocked = errors.New("record locked")

Functions

This section is empty.

Types

type AppInstallationRequestWorker added in v0.0.21

type AppInstallationRequestWorker struct {
	// contains filtered or unexported fields
}

func NewAppInstallationRequestWorker added in v0.0.21

func NewAppInstallationRequestWorker(encryptor crypto.Encryptor, registry *registry.Registry, oidcProvider oidc.Provider, baseURL string, webhooksBaseURL string) *AppInstallationRequestWorker

func (*AppInstallationRequestWorker) LockAndProcessRequest added in v0.0.21

func (w *AppInstallationRequestWorker) LockAndProcessRequest(request models.AppInstallationRequest) error

func (*AppInstallationRequestWorker) Start added in v0.0.21

type EventDistributer

type EventDistributer struct {
	// contains filtered or unexported fields
}

EventDistributer coordinates message consumption from RabbitMQ and distributes events to websocket clients

func NewEventDistributer

func NewEventDistributer(wsHub *ws.Hub) *EventDistributer

NewEventDistributer creates a new event distributer coordinator

func (*EventDistributer) Shutdown

func (e *EventDistributer) Shutdown(ctx context.Context) error

Shutdown gracefully stops the worker

func (*EventDistributer) Start

func (e *EventDistributer) Start() error

Start begins consuming messages from RabbitMQ for all relevant routing keys

type InstallationCleanupWorker

type InstallationCleanupWorker struct {
	// contains filtered or unexported fields
}

func NewInstallationCleanupWorker

func NewInstallationCleanupWorker() *InstallationCleanupWorker

func (*InstallationCleanupWorker) LockAndProcessInstallation

func (w *InstallationCleanupWorker) LockAndProcessInstallation(installation models.AppInstallation) error

func (*InstallationCleanupWorker) Start

type InvitationEmailConsumer

type InvitationEmailConsumer struct {
	Consumer     *tackle.Consumer
	RabbitMQURL  string
	EmailService services.EmailService
	BaseURL      string
}

func NewInvitationEmailConsumer

func NewInvitationEmailConsumer(rabbitMQURL string, emailService services.EmailService, baseURL string) *InvitationEmailConsumer

func (*InvitationEmailConsumer) Consume

func (c *InvitationEmailConsumer) Consume(delivery tackle.Delivery) error

func (*InvitationEmailConsumer) Start

func (c *InvitationEmailConsumer) Start() error

func (*InvitationEmailConsumer) Stop

func (c *InvitationEmailConsumer) Stop()

type NodeRequestWorker

type NodeRequestWorker struct {
	// contains filtered or unexported fields
}

func NewNodeRequestWorker

func NewNodeRequestWorker(encryptor crypto.Encryptor, registry *registry.Registry) *NodeRequestWorker

func (*NodeRequestWorker) LockAndProcessRequest

func (w *NodeRequestWorker) LockAndProcessRequest(request models.WorkflowNodeRequest) error

func (*NodeRequestWorker) Start

func (w *NodeRequestWorker) Start(ctx context.Context)

type NotificationEmailConsumer added in v0.0.43

type NotificationEmailConsumer struct {
	Consumer     *tackle.Consumer
	RabbitMQURL  string
	EmailService services.EmailService
	AuthService  authorization.Authorization
}

func NewNotificationEmailConsumer added in v0.0.43

func NewNotificationEmailConsumer(
	rabbitMQURL string,
	emailService services.EmailService,
	authService authorization.Authorization,
) *NotificationEmailConsumer

func (*NotificationEmailConsumer) Consume added in v0.0.43

func (c *NotificationEmailConsumer) Consume(delivery tackle.Delivery) error

func (*NotificationEmailConsumer) Start added in v0.0.43

func (c *NotificationEmailConsumer) Start() error

func (*NotificationEmailConsumer) Stop added in v0.0.43

func (c *NotificationEmailConsumer) Stop()

type WebhookCleanupWorker

type WebhookCleanupWorker struct {
	// contains filtered or unexported fields
}

func NewWebhookCleanupWorker

func NewWebhookCleanupWorker(encryptor crypto.Encryptor, registry *registry.Registry, baseURL string) *WebhookCleanupWorker

func (*WebhookCleanupWorker) LockAndProcessWebhook

func (w *WebhookCleanupWorker) LockAndProcessWebhook(webhook models.Webhook) error

func (*WebhookCleanupWorker) Start

func (w *WebhookCleanupWorker) Start(ctx context.Context)

type WebhookProvisioner

type WebhookProvisioner struct {
	// contains filtered or unexported fields
}

func NewWebhookProvisioner

func NewWebhookProvisioner(baseURL string, encryptor crypto.Encryptor, registry *registry.Registry) *WebhookProvisioner

func (*WebhookProvisioner) LockAndProcessWebhook

func (w *WebhookProvisioner) LockAndProcessWebhook(webhook models.Webhook) error

func (*WebhookProvisioner) Start

func (w *WebhookProvisioner) Start(ctx context.Context)

type WorkflowCleanupWorker

type WorkflowCleanupWorker struct {
	// contains filtered or unexported fields
}

func NewWorkflowCleanupWorker

func NewWorkflowCleanupWorker() *WorkflowCleanupWorker

func (*WorkflowCleanupWorker) LockAndProcessWorkflow

func (w *WorkflowCleanupWorker) LockAndProcessWorkflow(workflow models.Workflow) error

func (*WorkflowCleanupWorker) Start

func (w *WorkflowCleanupWorker) Start(ctx context.Context)

type WorkflowEventRouter

type WorkflowEventRouter struct {
	// contains filtered or unexported fields
}

func NewWorkflowEventRouter

func NewWorkflowEventRouter() *WorkflowEventRouter

func (*WorkflowEventRouter) LockAndProcessEvent

func (w *WorkflowEventRouter) LockAndProcessEvent(logger *log.Entry, event models.WorkflowEvent) error

func (*WorkflowEventRouter) Start

func (w *WorkflowEventRouter) Start(ctx context.Context)

type WorkflowNodeExecutor

type WorkflowNodeExecutor struct {
	// contains filtered or unexported fields
}

func NewWorkflowNodeExecutor

func NewWorkflowNodeExecutor(encryptor crypto.Encryptor, registry *registry.Registry, baseURL string) *WorkflowNodeExecutor

func (*WorkflowNodeExecutor) LockAndProcessNodeExecution

func (w *WorkflowNodeExecutor) LockAndProcessNodeExecution(id uuid.UUID) error

func (*WorkflowNodeExecutor) Start

func (w *WorkflowNodeExecutor) Start(ctx context.Context)

type WorkflowNodeQueueWorker

type WorkflowNodeQueueWorker struct {
	// contains filtered or unexported fields
}

func NewWorkflowNodeQueueWorker

func NewWorkflowNodeQueueWorker(registry *registry.Registry) *WorkflowNodeQueueWorker

func (*WorkflowNodeQueueWorker) LockAndProcessNode

func (w *WorkflowNodeQueueWorker) LockAndProcessNode(logger *log.Entry, node models.WorkflowNode) error

func (*WorkflowNodeQueueWorker) Start

func (w *WorkflowNodeQueueWorker) Start(ctx context.Context)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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