client

package
v0.19.1039 Latest Latest
Warning

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

Go to latest
Published: Jul 6, 2026 License: AGPL-3.0 Imports: 17 Imported by: 0 modules, 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

This section is empty.

Types

type Client

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

func New

func New(params Params) *Client

func (*Client) CreateEmitter

func (c *Client) CreateEmitter(ctx context.Context, req *CreateEmitterRequest) (*app.QueueEmitter, error)

@temporal-gen-v2 activity @start-to-close-timeout 2m

func (*Client) DeleteEmitter

func (c *Client) DeleteEmitter(ctx context.Context, emitterID string) error

@temporal-gen-v2 activity @start-to-close-timeout 1m

func (*Client) EnsureRunning

func (c *Client) EnsureRunning(ctx context.Context, emitterID string) (*emitter.EnsureRunningResponse, error)

func (*Client) GetEmittersByQueueID

func (c *Client) GetEmittersByQueueID(ctx context.Context, queueID string) ([]app.QueueEmitter, error)

@temporal-gen-v2 activity @start-to-close-timeout 1m

func (*Client) PauseEmitter

func (c *Client) PauseEmitter(ctx context.Context, emitterID string) (*app.QueueEmitter, error)

func (*Client) RestartEmitterWorkflow

func (c *Client) RestartEmitterWorkflow(ctx context.Context, emitterID string) (*app.QueueEmitter, error)

@temporal-gen-v2 activity @start-to-close-timeout 2m

func (*Client) ResumeEmitter

func (c *Client) ResumeEmitter(ctx context.Context, emitterID string) (*app.QueueEmitter, error)

func (*Client) StopEmitter added in v0.19.894

func (c *Client) StopEmitter(ctx context.Context, emitterID string) (*app.QueueEmitter, error)

@temporal-gen-v2 activity @start-to-close-timeout 2m

type CreateEmitterRequest

type CreateEmitterRequest struct {
	QueueID     string `validate:"required"`
	Name        string `validate:"required"`
	Description string

	// Mode determines if this is a recurring cron emitter or a one-shot scheduled emitter
	Mode app.QueueEmitterMode `validate:"required"`

	// For cron mode: the cron schedule expression (e.g., "0 * * * *")
	CronSchedule string
	// For cron mode: spread ticks deterministically across this window
	// (per-emitter offset = hash(emitter ID) % JitterWindow). Zero disables.
	JitterWindow time.Duration
	// For scheduled mode: when to fire the signal
	ScheduledAt *time.Time

	SignalType      signal.SignalType `validate:"required"`
	SignalTemplate  signal.Signal
	SignalExpiresIn time.Duration
}

type Params

type Params struct {
	fx.In

	DB      *gorm.DB `name:"psql"`
	Cfg     *internal.Config
	TClient temporalclient.Client
	L       *zap.Logger
}

Jump to

Keyboard shortcuts

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