Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Job ¶
type Job struct {
ID int64 `xorm:"'id' pk autoincr"`
JobKey string `xorm:"'job_key' unique not null index"`
JobID string `xorm:"'job_id' not null index"`
Namespace string `xorm:"'namespace' not null index"`
QueueID string `xorm:"'queue_id' not null index"`
Data []byte `xorm:"'data' blob"`
CreatedAt time.Time `xorm:"'created_at' created"`
UpdatedAt time.Time `xorm:"'updated_at' updated"`
}
Job represents a job record in the database
type Lease ¶
type Lease struct {
ID int64 `xorm:"'id' pk autoincr"`
LeaseKey string `xorm:"'lease_key' unique not null index"`
JobID string `xorm:"'job_id' not null index"`
Namespace string `xorm:"'namespace' not null index"`
QueueID string `xorm:"'queue_id' not null index"`
ExpiresAt time.Time `xorm:"'expires_at' not null index"`
CreatedAt time.Time `xorm:"'created_at' created"`
}
Lease represents a job lease record in the database
Click to show internal directories.
Click to hide internal directories.