Documentation
¶
Index ¶
- Constants
- type EnqueueHandlerInput
- type EnqueueResponse
- type Params
- type PauseRequest
- type PauseResponse
- type QueueRef
- type QueueState
- type QueueWorkflowRequest
- type ReadyRequest
- type ReadyResponse
- type ReleaseWindow
- type RestartRequest
- type RestartResponse
- type ResumeRequest
- type ResumeResponse
- type StatusRequest
- type StatusResponse
- type StopRequest
- type StopResponse
- type Workflows
Constants ¶
View Source
const ( PauseHandlerName string = "pause" ResumeHandlerName string = "resume" )
View Source
const ( ReadyHandlerName string = "ready" ReadyHandlerType = handlerTypeUpdate )
View Source
const ( StatusHandlerName string = "status" StatusHandlerType = handlerTypeUpdate )
View Source
const EnqueueUpdateName string = "enqueue"
View Source
const RestartUpdateName string = "restart"
View Source
const StopUpdateName string = "stop"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EnqueueHandlerInput ¶ added in v0.19.850
type EnqueueHandlerInput struct {
Signal signal.Signal `json:"signal"`
OwnerID string `json:"owner_id,omitempty"`
OwnerType string `json:"owner_type,omitempty"`
}
EnqueueHandlerInput is the input to the enqueue update handler. OwnerID and OwnerType are optional — when set, the created QueueSignal will have its polymorphic owner association populated automatically (e.g. pointing at a ComponentBuild).
type EnqueueResponse ¶
type PauseRequest ¶ added in v0.19.850
type PauseRequest struct{}
type PauseResponse ¶ added in v0.19.850
type PauseResponse struct{}
type QueueState ¶
QueueState is the data that is passed between continue-as-news
type QueueWorkflowRequest ¶
type QueueWorkflowRequest struct {
QueueID string
Version string
ReleaseWindow *ReleaseWindow
State *QueueState
}
type ReadyRequest ¶
type ReadyRequest struct{}
type ReadyResponse ¶
type ReadyResponse struct{}
type ReleaseWindow ¶ added in v0.19.850
type ReleaseWindow struct {
// Days of the week (Mon, Tue, Wed, Thu, Fri, Sat, Sun)
Days []string
// StartTime in HH:MM format
StartTime string
// EndTime in HH:MM format
EndTime string
// Timezone (e.g. "America/New_York")
Timezone string
}
func (*ReleaseWindow) NextOpenTime ¶ added in v0.19.850
func (w *ReleaseWindow) NextOpenTime(t time.Time) time.Time
NextOpenTime returns the next time the window opens. If the window is currently open, it returns the current time.
type RestartRequest ¶
type RestartRequest struct{}
type RestartResponse ¶
type RestartResponse struct{}
type ResumeRequest ¶ added in v0.19.850
type ResumeRequest struct{}
type ResumeResponse ¶ added in v0.19.850
type ResumeResponse struct{}
type StatusRequest ¶
type StatusRequest struct{}
type StatusResponse ¶
type StopRequest ¶
type StopRequest struct{}
type StopResponse ¶
type StopResponse struct{}
type Workflows ¶
type Workflows struct {
StartupHooks []func(workflow.Context, QueueWorkflowRequest) error
// contains filtered or unexported fields
}
func NewWorkflows ¶
Source Files
¶
Click to show internal directories.
Click to hide internal directories.