Documentation
¶
Index ¶
- Constants
- type CheckCANRequest
- type CheckCANResponse
- 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 ¶
View Source
const ( StopUpdateName string = "stop" RestartUpdateName string = "restart" StatusUpdateName string = "status" EnsureRunningUpdateName string = "ensure-running" PauseUpdateName string = "pause" ResumeUpdateName string = "resume" )
View Source
const CheckCANUpdateName string = "check-can"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CheckCANRequest ¶ added in v0.19.974
type CheckCANRequest struct{}
type CheckCANResponse ¶ added in v0.19.974
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.