Documentation
¶
Index ¶
- Constants
- type CronTickerWorkflowRequest
- type EmitterState
- type EmitterWorkflowRequest
- type EnsureRunningRequest
- type EnsureRunningResponse
- type Params
- type PauseRequest
- type PauseResponse
- type RestartRequest
- type RestartResponse
- type ResumeRequest
- type ResumeResponse
- type StatusRequest
- type StatusResponse
- type StopRequest
- type StopResponse
- type Workflows
Constants ¶
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EmitterState ¶
type EmitterState struct {
EmitCount int64
}
EmitterState is the data that is passed between continue-as-news
type EmitterWorkflowRequest ¶
type EmitterWorkflowRequest struct {
QueueID string `validate:"required"`
EmitterID string `validate:"required"`
Version string `validate:"required"`
State *EmitterState
}
type EnsureRunningRequest ¶
type EnsureRunningRequest struct{}
type EnsureRunningResponse ¶
type PauseRequest ¶
type PauseRequest struct{}
type PauseResponse ¶
type PauseResponse struct {
Paused bool
}
type RestartRequest ¶
type RestartRequest struct{}
type RestartResponse ¶
type RestartResponse struct{}
type ResumeRequest ¶
type ResumeRequest struct{}
type ResumeResponse ¶
type ResumeResponse struct {
Paused bool
}
type StatusRequest ¶
type StatusRequest struct{}
type StatusResponse ¶
type StopRequest ¶
type StopRequest struct{}
type StopResponse ¶
type StopResponse struct{}
type Workflows ¶
type Workflows struct {
// contains filtered or unexported fields
}
func NewWorkflows ¶
func (*Workflows) CronTicker ¶
func (w *Workflows) CronTicker(ctx workflow.Context, req CronTickerWorkflowRequest) error
@temporal-gen-v2 workflow @task-queue "queue" @id-template queue-emitter-cron-{{.QueueID}}-{{.EmitterID}}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.