Documentation ¶
Index ¶
- Variables
- type CreateTaskBatchResults
- type CreateTaskParams
- type DBTX
- type NullTaskStatus
- type PopTasksWithConcurrencyParams
- type Queries
- func (q *Queries) CreateTask(ctx context.Context, db DBTX, arg []CreateTaskParams) *CreateTaskBatchResults
- func (q *Queries) PopTasks(ctx context.Context, db DBTX, limit pgtype.Int4) ([]*Task, error)
- func (q *Queries) PopTasksWithConcurrency(ctx context.Context, db DBTX, arg PopTasksWithConcurrencyParams) ([]*Task, error)
- func (q *Queries) UpdateTaskPtrs(ctx context.Context, db DBTX) (*TaskAddrPtr, error)
- func (q *Queries) UpdateTaskStatus(ctx context.Context, db DBTX, arg UpdateTaskStatusParams) (*Task, error)
- type Task
- type TaskAddrPtr
- type TaskGroup
- type TaskStatus
- type UpdateTaskStatusParams
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrBatchAlreadyClosed = errors.New("batch already closed")
)
Functions ¶
This section is empty.
Types ¶
type CreateTaskBatchResults ¶
type CreateTaskBatchResults struct {
// contains filtered or unexported fields
}
func (*CreateTaskBatchResults) Close ¶
func (b *CreateTaskBatchResults) Close() error
type CreateTaskParams ¶
type NullTaskStatus ¶
type NullTaskStatus struct { TaskStatus TaskStatus `json:"TaskStatus"` Valid bool `json:"valid"` // Valid is true if TaskStatus is not NULL }
func (*NullTaskStatus) Scan ¶
func (ns *NullTaskStatus) Scan(value interface{}) error
Scan implements the Scanner interface.
type Queries ¶
type Queries struct { }
func (*Queries) CreateTask ¶
func (q *Queries) CreateTask(ctx context.Context, db DBTX, arg []CreateTaskParams) *CreateTaskBatchResults
func (*Queries) PopTasksWithConcurrency ¶
func (*Queries) UpdateTaskPtrs ¶
func (*Queries) UpdateTaskStatus ¶
type TaskAddrPtr ¶
type TaskStatus ¶
type TaskStatus string
const ( TaskStatusQUEUED TaskStatus = "QUEUED" TaskStatusRUNNING TaskStatus = "RUNNING" TaskStatusSUCCEEDED TaskStatus = "SUCCEEDED" TaskStatusFAILED TaskStatus = "FAILED" TaskStatusCANCELLED TaskStatus = "CANCELLED" )
func (*TaskStatus) Scan ¶
func (e *TaskStatus) Scan(src interface{}) error
type UpdateTaskStatusParams ¶
type UpdateTaskStatusParams struct { Status NullTaskStatus `json:"status"` ID pgtype.Int8 `json:"id"` }
Click to show internal directories.
Click to hide internal directories.