Documentation
¶
Index ¶
- func RunCronWorkflow(ctx context.Context, mq msgqueue.MessageQueue, tenantId uuid.UUID, cron string, ...) (*uuid.UUID, error)
- func RunScheduledWorkflow(ctx context.Context, l *zerolog.Logger, mq msgqueue.MessageQueue, ...) (*uuid.UUID, error)
- type Ticker
- type TickerImpl
- type TickerOpt
- type TickerOpts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunCronWorkflow ¶ added in v0.88.2
func RunScheduledWorkflow ¶ added in v0.88.2
func RunScheduledWorkflow(ctx context.Context, l *zerolog.Logger, mq msgqueue.MessageQueue, repo v1.Repository, tenantId uuid.UUID, opts v1.RunScheduledWorkflowV1Opts) (*uuid.UUID, error)
Types ¶
type TickerImpl ¶
type TickerImpl struct {
// contains filtered or unexported fields
}
func New ¶
func New(fs ...TickerOpt) (*TickerImpl, error)
func (*TickerImpl) RunScheduledWorkflowV1 ¶ added in v0.88.2
func (t *TickerImpl) RunScheduledWorkflowV1(ctx context.Context, tenantId uuid.UUID, opts v1.RunScheduledWorkflowV1Opts) error
func (*TickerImpl) Start ¶
func (t *TickerImpl) Start() (func() error, error)
type TickerOpt ¶
type TickerOpt func(*TickerOpts)
func WithLogger ¶
func WithMessageQueueV1 ¶
func WithMessageQueueV1(mq msgqueue.MessageQueue) TickerOpt
func WithRepositoryV1 ¶
func WithRepositoryV1(r v1.Repository) TickerOpt
func WithTenantAlerter ¶
func WithTenantAlerter(ta *alerting.TenantAlertManager) TickerOpt
type TickerOpts ¶
type TickerOpts struct {
// contains filtered or unexported fields
}
Click to show internal directories.
Click to hide internal directories.