taskmanager

package
v0.9.5 Latest Latest
Warning

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

Go to latest
Published: Sep 19, 2025 License: MIT Imports: 27 Imported by: 0

Documentation

Index

Constants

View Source
const JobKindTransferWorkflow = "transfer_workflow"
View Source
const JobKindWebhookWaitingConfirmations = "waiting_confirmations"
View Source
const (
	WebhookCleanupPeriodicJob = "webhook_cleanup"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskManager

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

func (*TaskManager) Client

func (s *TaskManager) Client() *river.Client[pgx.Tx]

Client

func (*TaskManager) Name

func (s *TaskManager) Name() string

Name

func (*TaskManager) Start

func (s *TaskManager) Start(ctx context.Context) error

Start

func (*TaskManager) Stop

func (s *TaskManager) Stop(ctx context.Context) error

Stop

type TransferWorkflowArgs

type TransferWorkflowArgs struct {
	TransferID uuid.UUID `json:"transfer_id"`
}

func (TransferWorkflowArgs) Kind

Kind

type TransferWorkflowWorker

type TransferWorkflowWorker struct {
	river.WorkerDefaults[TransferWorkflowArgs]
	// contains filtered or unexported fields
}

func (*TransferWorkflowWorker) Timeout

func (*TransferWorkflowWorker) Work

type WebhookCleanupJobArgs

type WebhookCleanupJobArgs struct{}

func (WebhookCleanupJobArgs) Kind

type WebhookCleanupWorker

type WebhookCleanupWorker struct {
	river.WorkerDefaults[WebhookCleanupJobArgs]
	// contains filtered or unexported fields
}

func (*WebhookCleanupWorker) Timeout

func (*WebhookCleanupWorker) Work

type WebhookWaitingConfirmationsArgs

type WebhookWaitingConfirmationsArgs struct {
	Blockchain             wconstants.BlockchainType `json:"blockchain"`
	Hash                   string                    `json:"hash"`
	Address                string                    `json:"address"`
	EventBlockchainUniqKey string                    `json:"event_blockchain_uniq_key"`
	WebhookKind            models.WebhookKind        `json:"webhook_kind"`
	WalletType             constants.WalletType      `json:"wallet_type"`
	OwnerID                uuid.UUID                 `json:"owner_id"`
	ExternalWalletID       *string                   `json:"external_wallet_id,omitempty"`
	IsSystem               bool                      `json:"is_system"`
}

func (WebhookWaitingConfirmationsArgs) Kind

Kind

func (WebhookWaitingConfirmationsArgs) Validate

type WebhookWaitingConfirmationsWorker

type WebhookWaitingConfirmationsWorker struct {
	river.WorkerDefaults[WebhookWaitingConfirmationsArgs]
	// contains filtered or unexported fields
}

func (*WebhookWaitingConfirmationsWorker) Work

Jump to

Keyboard shortcuts

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