Documentation ¶
Index ¶
- type CreateAsyncCallParams
- type CreateCronJobParams
- type CronJob
- type DBTX
- type Deployment
- type GetCronJobByKeyRow
- type GetUnscheduledCronJobsRow
- type Querier
- type Queries
- func (q *Queries) AsyncCallQueueDepth(ctx context.Context) (int64, error)
- func (q *Queries) CreateAsyncCall(ctx context.Context, arg CreateAsyncCallParams) (int64, error)
- func (q *Queries) CreateCronJob(ctx context.Context, arg CreateCronJobParams) error
- func (q *Queries) DeleteCronAsyncCallsForDeployment(ctx context.Context, deploymentKey model.DeploymentKey) error
- func (q *Queries) DeleteCronJobsForDeployment(ctx context.Context, deploymentKey model.DeploymentKey) error
- func (q *Queries) GetCronJobByKey(ctx context.Context, key model.CronJobKey) (GetCronJobByKeyRow, error)
- func (q *Queries) GetUnscheduledCronJobs(ctx context.Context, startTime time.Time) ([]GetUnscheduledCronJobsRow, error)
- func (q *Queries) IsCronJobPending(ctx context.Context, key model.CronJobKey, startTime time.Time) (bool, error)
- func (q *Queries) UpdateCronJobExecution(ctx context.Context, arg UpdateCronJobExecutionParams) error
- func (q *Queries) WithTx(tx *sql.Tx) *Queries
- type Type
- type UpdateCronJobExecutionParams
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CreateAsyncCallParams ¶
type CreateAsyncCallParams struct { ScheduledAt time.Time Verb schema.RefKey Origin string Request api.EncryptedAsyncColumn RemainingAttempts int32 Backoff sqltypes.Duration MaxBackoff sqltypes.Duration CatchVerb optional.Option[schema.RefKey] ParentRequestKey optional.Option[string] TraceContext json.RawMessage }
type CreateCronJobParams ¶
type Deployment ¶
type GetCronJobByKeyRow ¶
type GetCronJobByKeyRow struct { CronJob CronJob Deployment Deployment }
type GetUnscheduledCronJobsRow ¶
type GetUnscheduledCronJobsRow struct { CronJob CronJob Deployment Deployment }
type Querier ¶
type Querier interface { AsyncCallQueueDepth(ctx context.Context) (int64, error) CreateAsyncCall(ctx context.Context, arg CreateAsyncCallParams) (int64, error) CreateCronJob(ctx context.Context, arg CreateCronJobParams) error DeleteCronAsyncCallsForDeployment(ctx context.Context, deploymentKey model.DeploymentKey) error DeleteCronJobsForDeployment(ctx context.Context, deploymentKey model.DeploymentKey) error GetCronJobByKey(ctx context.Context, key model.CronJobKey) (GetCronJobByKeyRow, error) GetUnscheduledCronJobs(ctx context.Context, startTime time.Time) ([]GetUnscheduledCronJobsRow, error) IsCronJobPending(ctx context.Context, key model.CronJobKey, startTime time.Time) (bool, error) UpdateCronJobExecution(ctx context.Context, arg UpdateCronJobExecutionParams) error }
type Queries ¶
type Queries struct {
// contains filtered or unexported fields
}
func (*Queries) AsyncCallQueueDepth ¶
func (*Queries) CreateAsyncCall ¶
func (*Queries) CreateCronJob ¶
func (q *Queries) CreateCronJob(ctx context.Context, arg CreateCronJobParams) error
func (*Queries) DeleteCronAsyncCallsForDeployment ¶ added in v0.384.0
func (*Queries) DeleteCronJobsForDeployment ¶ added in v0.383.1
func (*Queries) GetCronJobByKey ¶
func (q *Queries) GetCronJobByKey(ctx context.Context, key model.CronJobKey) (GetCronJobByKeyRow, error)
func (*Queries) GetUnscheduledCronJobs ¶
func (*Queries) IsCronJobPending ¶
func (*Queries) UpdateCronJobExecution ¶
func (q *Queries) UpdateCronJobExecution(ctx context.Context, arg UpdateCronJobExecutionParams) error
Click to show internal directories.
Click to hide internal directories.