Documentation ¶
Index ¶
- type Action
- type ActionToWorker
- type CountEventsParams
- type CountWorkflowRunsParams
- type CountWorkflowsParams
- type DBTX
- type Dispatcher
- type Event
- type GetEventsForRangeRow
- type Job
- type JobRun
- type JobRunLookupData
- type JobRunStatus
- type ListEventsParams
- type ListEventsRow
- type ListWorkflowRunsParams
- type ListWorkflowRunsRow
- type ListWorkflowsLatestRunsParams
- type ListWorkflowsLatestRunsRow
- type ListWorkflowsParams
- type ListWorkflowsRow
- type NullJobRunStatus
- type NullStepRunStatus
- type NullTenantMemberRole
- type NullWorkerStatus
- type NullWorkflowRunStatus
- type Queries
- func (q *Queries) CountEvents(ctx context.Context, db DBTX, arg CountEventsParams) (int64, error)
- func (q *Queries) CountWorkflowRuns(ctx context.Context, db DBTX, arg CountWorkflowRunsParams) (int64, error)
- func (q *Queries) CountWorkflows(ctx context.Context, db DBTX, arg CountWorkflowsParams) (int64, error)
- func (q *Queries) GetEventsForRange(ctx context.Context, db DBTX) ([]*GetEventsForRangeRow, error)
- func (q *Queries) ListEvents(ctx context.Context, db DBTX, arg ListEventsParams) ([]*ListEventsRow, error)
- func (q *Queries) ListWorkflowRuns(ctx context.Context, db DBTX, arg ListWorkflowRunsParams) ([]*ListWorkflowRunsRow, error)
- func (q *Queries) ListWorkflows(ctx context.Context, db DBTX, arg ListWorkflowsParams) ([]*ListWorkflowsRow, error)
- func (q *Queries) ListWorkflowsLatestRuns(ctx context.Context, db DBTX, arg ListWorkflowsLatestRunsParams) ([]*ListWorkflowsLatestRunsRow, error)
- func (q *Queries) ResolveJobRunStatus(ctx context.Context, db DBTX, arg ResolveJobRunStatusParams) (*JobRun, error)
- func (q *Queries) ResolveLaterStepRuns(ctx context.Context, db DBTX, arg ResolveLaterStepRunsParams) ([]*StepRun, error)
- func (q *Queries) ResolveWorkflowRunStatus(ctx context.Context, db DBTX, arg ResolveWorkflowRunStatusParams) (*WorkflowRun, error)
- func (q *Queries) UpdateJobRun(ctx context.Context, db DBTX, arg UpdateJobRunParams) (*JobRun, error)
- func (q *Queries) UpdateStepRun(ctx context.Context, db DBTX, arg UpdateStepRunParams) (*StepRun, error)
- type ResolveJobRunStatusParams
- type ResolveLaterStepRunsParams
- type ResolveWorkflowRunStatusParams
- type Step
- type StepRun
- type StepRunStatus
- type Tenant
- type TenantMember
- type TenantMemberRole
- type Ticker
- type UpdateJobRunParams
- type UpdateStepRunParams
- type User
- type UserPassword
- type UserSession
- type Worker
- type WorkerStatus
- type Workflow
- type WorkflowRun
- type WorkflowRunStatus
- type WorkflowRunTriggeredBy
- type WorkflowTag
- type WorkflowToWorkflowTag
- type WorkflowTriggerCronRef
- type WorkflowTriggerEventRef
- type WorkflowTriggers
- type WorkflowVersion
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ActionToWorker ¶
type CountEventsParams ¶
type CountWorkflowRunsParams ¶
type CountWorkflowsParams ¶
type Dispatcher ¶
type Event ¶
type Event struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` Key string `json:"key"` TenantId pgtype.UUID `json:"tenantId"` ReplayedFromId pgtype.UUID `json:"replayedFromId"` Data []byte `json:"data"` }
type GetEventsForRangeRow ¶
type Job ¶
type Job struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` TenantId pgtype.UUID `json:"tenantId"` WorkflowVersionId pgtype.UUID `json:"workflowVersionId"` Name string `json:"name"` Description pgtype.Text `json:"description"` Timeout pgtype.Text `json:"timeout"` }
type JobRun ¶
type JobRun struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` TenantId pgtype.UUID `json:"tenantId"` WorkflowRunId string `json:"workflowRunId"` JobId pgtype.UUID `json:"jobId"` TickerId pgtype.UUID `json:"tickerId"` Status JobRunStatus `json:"status"` Result []byte `json:"result"` StartedAt pgtype.Timestamp `json:"startedAt"` FinishedAt pgtype.Timestamp `json:"finishedAt"` TimeoutAt pgtype.Timestamp `json:"timeoutAt"` CancelledAt pgtype.Timestamp `json:"cancelledAt"` CancelledReason pgtype.Text `json:"cancelledReason"` CancelledError pgtype.Text `json:"cancelledError"` }
type JobRunLookupData ¶
type JobRunLookupData struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` JobRunId pgtype.UUID `json:"jobRunId"` TenantId pgtype.UUID `json:"tenantId"` Data []byte `json:"data"` }
type JobRunStatus ¶
type JobRunStatus string
const ( JobRunStatusPENDING JobRunStatus = "PENDING" JobRunStatusRUNNING JobRunStatus = "RUNNING" JobRunStatusSUCCEEDED JobRunStatus = "SUCCEEDED" JobRunStatusFAILED JobRunStatus = "FAILED" JobRunStatusCANCELLED JobRunStatus = "CANCELLED" )
func (*JobRunStatus) Scan ¶
func (e *JobRunStatus) Scan(src interface{}) error
type ListEventsParams ¶
type ListEventsRow ¶
type ListWorkflowRunsParams ¶
type ListWorkflowRunsRow ¶
type ListWorkflowRunsRow struct { WorkflowRun WorkflowRun `json:"workflow_run"` Workflow Workflow `json:"workflow"` WorkflowRunTriggeredBy WorkflowRunTriggeredBy `json:"workflow_run_triggered_by"` WorkflowVersion WorkflowVersion `json:"workflow_version"` ID pgtype.UUID `json:"id"` Key pgtype.Text `json:"key"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` }
type ListWorkflowsLatestRunsRow ¶
type ListWorkflowsLatestRunsRow struct { WorkflowRun WorkflowRun `json:"workflow_run"` WorkflowId pgtype.UUID `json:"workflowId"` }
type ListWorkflowsParams ¶
type ListWorkflowsRow ¶
type ListWorkflowsRow struct {
Workflow Workflow `json:"workflow"`
}
type NullJobRunStatus ¶
type NullJobRunStatus struct { JobRunStatus JobRunStatus `json:"JobRunStatus"` Valid bool `json:"valid"` // Valid is true if JobRunStatus is not NULL }
func (*NullJobRunStatus) Scan ¶
func (ns *NullJobRunStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullStepRunStatus ¶
type NullStepRunStatus struct { StepRunStatus StepRunStatus `json:"StepRunStatus"` Valid bool `json:"valid"` // Valid is true if StepRunStatus is not NULL }
func (*NullStepRunStatus) Scan ¶
func (ns *NullStepRunStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullTenantMemberRole ¶
type NullTenantMemberRole struct { TenantMemberRole TenantMemberRole `json:"TenantMemberRole"` Valid bool `json:"valid"` // Valid is true if TenantMemberRole is not NULL }
func (*NullTenantMemberRole) Scan ¶
func (ns *NullTenantMemberRole) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullWorkerStatus ¶
type NullWorkerStatus struct { WorkerStatus WorkerStatus `json:"WorkerStatus"` Valid bool `json:"valid"` // Valid is true if WorkerStatus is not NULL }
func (*NullWorkerStatus) Scan ¶
func (ns *NullWorkerStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type NullWorkflowRunStatus ¶
type NullWorkflowRunStatus struct { WorkflowRunStatus WorkflowRunStatus `json:"WorkflowRunStatus"` Valid bool `json:"valid"` // Valid is true if WorkflowRunStatus is not NULL }
func (*NullWorkflowRunStatus) Scan ¶
func (ns *NullWorkflowRunStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct { }
func (*Queries) CountEvents ¶
func (*Queries) CountWorkflowRuns ¶
func (*Queries) CountWorkflows ¶
func (*Queries) GetEventsForRange ¶
func (*Queries) ListEvents ¶
func (q *Queries) ListEvents(ctx context.Context, db DBTX, arg ListEventsParams) ([]*ListEventsRow, error)
func (*Queries) ListWorkflowRuns ¶
func (q *Queries) ListWorkflowRuns(ctx context.Context, db DBTX, arg ListWorkflowRunsParams) ([]*ListWorkflowRunsRow, error)
func (*Queries) ListWorkflows ¶
func (q *Queries) ListWorkflows(ctx context.Context, db DBTX, arg ListWorkflowsParams) ([]*ListWorkflowsRow, error)
func (*Queries) ListWorkflowsLatestRuns ¶
func (q *Queries) ListWorkflowsLatestRuns(ctx context.Context, db DBTX, arg ListWorkflowsLatestRunsParams) ([]*ListWorkflowsLatestRunsRow, error)
func (*Queries) ResolveJobRunStatus ¶
func (*Queries) ResolveLaterStepRuns ¶
func (*Queries) ResolveWorkflowRunStatus ¶
func (q *Queries) ResolveWorkflowRunStatus(ctx context.Context, db DBTX, arg ResolveWorkflowRunStatusParams) (*WorkflowRun, error)
func (*Queries) UpdateJobRun ¶
func (*Queries) UpdateStepRun ¶
type Step ¶
type Step struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` ReadableId pgtype.Text `json:"readableId"` TenantId pgtype.UUID `json:"tenantId"` JobId pgtype.UUID `json:"jobId"` ActionId string `json:"actionId"` Timeout pgtype.Text `json:"timeout"` Inputs []byte `json:"inputs"` NextId pgtype.UUID `json:"nextId"` }
type StepRun ¶
type StepRun struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` TenantId pgtype.UUID `json:"tenantId"` JobRunId pgtype.UUID `json:"jobRunId"` StepId pgtype.UUID `json:"stepId"` NextId pgtype.UUID `json:"nextId"` Order int16 `json:"order"` WorkerId pgtype.UUID `json:"workerId"` TickerId pgtype.UUID `json:"tickerId"` Status StepRunStatus `json:"status"` Input []byte `json:"input"` Output []byte `json:"output"` RequeueAfter pgtype.Timestamp `json:"requeueAfter"` ScheduleTimeoutAt pgtype.Timestamp `json:"scheduleTimeoutAt"` Error pgtype.Text `json:"error"` StartedAt pgtype.Timestamp `json:"startedAt"` FinishedAt pgtype.Timestamp `json:"finishedAt"` TimeoutAt pgtype.Timestamp `json:"timeoutAt"` CancelledAt pgtype.Timestamp `json:"cancelledAt"` CancelledReason pgtype.Text `json:"cancelledReason"` CancelledError pgtype.Text `json:"cancelledError"` }
type StepRunStatus ¶
type StepRunStatus string
const ( StepRunStatusPENDING StepRunStatus = "PENDING" StepRunStatusPENDINGASSIGNMENT StepRunStatus = "PENDING_ASSIGNMENT" StepRunStatusASSIGNED StepRunStatus = "ASSIGNED" StepRunStatusRUNNING StepRunStatus = "RUNNING" StepRunStatusSUCCEEDED StepRunStatus = "SUCCEEDED" StepRunStatusFAILED StepRunStatus = "FAILED" StepRunStatusCANCELLED StepRunStatus = "CANCELLED" )
func (*StepRunStatus) Scan ¶
func (e *StepRunStatus) Scan(src interface{}) error
type TenantMember ¶
type TenantMemberRole ¶
type TenantMemberRole string
const ( TenantMemberRoleOWNER TenantMemberRole = "OWNER" TenantMemberRoleADMIN TenantMemberRole = "ADMIN" TenantMemberRoleMEMBER TenantMemberRole = "MEMBER" )
func (*TenantMemberRole) Scan ¶
func (e *TenantMemberRole) Scan(src interface{}) error
type UpdateJobRunParams ¶
type UpdateJobRunParams struct { Status NullJobRunStatus `json:"status"` ID pgtype.UUID `json:"id"` Tenantid pgtype.UUID `json:"tenantid"` }
type UpdateStepRunParams ¶
type UpdateStepRunParams struct { RequeueAfter pgtype.Timestamp `json:"requeueAfter"` ScheduleTimeoutAt pgtype.Timestamp `json:"scheduleTimeoutAt"` StartedAt pgtype.Timestamp `json:"startedAt"` FinishedAt pgtype.Timestamp `json:"finishedAt"` Status NullStepRunStatus `json:"status"` Input []byte `json:"input"` Output []byte `json:"output"` Error pgtype.Text `json:"error"` CancelledAt pgtype.Timestamp `json:"cancelledAt"` CancelledReason pgtype.Text `json:"cancelledReason"` ID pgtype.UUID `json:"id"` Tenantid pgtype.UUID `json:"tenantid"` }
type UserPassword ¶
type UserSession ¶
type Worker ¶
type Worker struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` TenantId pgtype.UUID `json:"tenantId"` LastHeartbeatAt pgtype.Timestamp `json:"lastHeartbeatAt"` Name string `json:"name"` Status WorkerStatus `json:"status"` DispatcherId pgtype.UUID `json:"dispatcherId"` }
type WorkerStatus ¶
type WorkerStatus string
const ( WorkerStatusACTIVE WorkerStatus = "ACTIVE" WorkerStatusINACTIVE WorkerStatus = "INACTIVE" )
func (*WorkerStatus) Scan ¶
func (e *WorkerStatus) Scan(src interface{}) error
type WorkflowRun ¶
type WorkflowRun struct { ID string `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` TenantId pgtype.UUID `json:"tenantId"` WorkflowVersionId pgtype.UUID `json:"workflowVersionId"` Status WorkflowRunStatus `json:"status"` Input []byte `json:"input"` Error pgtype.Text `json:"error"` StartedAt pgtype.Timestamp `json:"startedAt"` FinishedAt pgtype.Timestamp `json:"finishedAt"` }
type WorkflowRunStatus ¶
type WorkflowRunStatus string
const ( WorkflowRunStatusPENDING WorkflowRunStatus = "PENDING" WorkflowRunStatusRUNNING WorkflowRunStatus = "RUNNING" WorkflowRunStatusSUCCEEDED WorkflowRunStatus = "SUCCEEDED" WorkflowRunStatusFAILED WorkflowRunStatus = "FAILED" )
func (*WorkflowRunStatus) Scan ¶
func (e *WorkflowRunStatus) Scan(src interface{}) error
type WorkflowRunTriggeredBy ¶
type WorkflowRunTriggeredBy struct { ID pgtype.UUID `json:"id"` CreatedAt pgtype.Timestamp `json:"createdAt"` UpdatedAt pgtype.Timestamp `json:"updatedAt"` DeletedAt pgtype.Timestamp `json:"deletedAt"` TenantId pgtype.UUID `json:"tenantId"` ParentId string `json:"parentId"` EventId pgtype.UUID `json:"eventId"` CronParentId pgtype.UUID `json:"cronParentId"` CronSchedule pgtype.Text `json:"cronSchedule"` }
type WorkflowTag ¶
type WorkflowToWorkflowTag ¶
type WorkflowTriggerCronRef ¶
type WorkflowTriggerEventRef ¶
type WorkflowTriggers ¶
type WorkflowVersion ¶
Click to show internal directories.
Click to hide internal directories.