Help us shape the future of Go! Take the 2026 Go Developer Survey

ticker

package
v0.112.13 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: MIT Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RunCronWorkflow added in v0.88.2

func RunCronWorkflow(ctx context.Context, mq msgqueue.MessageQueue, tenantId uuid.UUID, cron string, workflowName string, cronName *string, input []byte, additionalMetadata map[string]interface{}, priority *int32, scheduledAt time.Time) (*uuid.UUID, error)

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 Ticker

type Ticker interface {
	Start(ctx context.Context) error
}

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 WithLogger(l *zerolog.Logger) TickerOpt

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
}

Jump to

Keyboard shortcuts

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