Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Job) predicate.Job
- func Body(v string) predicate.Job
- func BodyContains(v string) predicate.Job
- func BodyContainsFold(v string) predicate.Job
- func BodyEQ(v string) predicate.Job
- func BodyEqualFold(v string) predicate.Job
- func BodyGT(v string) predicate.Job
- func BodyGTE(v string) predicate.Job
- func BodyHasPrefix(v string) predicate.Job
- func BodyHasSuffix(v string) predicate.Job
- func BodyIn(vs ...string) predicate.Job
- func BodyIsNil() predicate.Job
- func BodyLT(v string) predicate.Job
- func BodyLTE(v string) predicate.Job
- func BodyNEQ(v string) predicate.Job
- func BodyNotIn(vs ...string) predicate.Job
- func BodyNotNil() predicate.Job
- func CreatedAt(v time.Time) predicate.Job
- func CreatedAtEQ(v time.Time) predicate.Job
- func CreatedAtGT(v time.Time) predicate.Job
- func CreatedAtGTE(v time.Time) predicate.Job
- func CreatedAtIn(vs ...time.Time) predicate.Job
- func CreatedAtLT(v time.Time) predicate.Job
- func CreatedAtLTE(v time.Time) predicate.Job
- func CreatedAtNEQ(v time.Time) predicate.Job
- func CreatedAtNotIn(vs ...time.Time) predicate.Job
- func Error(v string) predicate.Job
- func ErrorContains(v string) predicate.Job
- func ErrorContainsFold(v string) predicate.Job
- func ErrorEQ(v string) predicate.Job
- func ErrorEqualFold(v string) predicate.Job
- func ErrorGT(v string) predicate.Job
- func ErrorGTE(v string) predicate.Job
- func ErrorHasPrefix(v string) predicate.Job
- func ErrorHasSuffix(v string) predicate.Job
- func ErrorIn(vs ...string) predicate.Job
- func ErrorIsNil() predicate.Job
- func ErrorLT(v string) predicate.Job
- func ErrorLTE(v string) predicate.Job
- func ErrorNEQ(v string) predicate.Job
- func ErrorNotIn(vs ...string) predicate.Job
- func ErrorNotNil() predicate.Job
- func FinishedAt(v time.Time) predicate.Job
- func FinishedAtEQ(v time.Time) predicate.Job
- func FinishedAtGT(v time.Time) predicate.Job
- func FinishedAtGTE(v time.Time) predicate.Job
- func FinishedAtIn(vs ...time.Time) predicate.Job
- func FinishedAtIsNil() predicate.Job
- func FinishedAtLT(v time.Time) predicate.Job
- func FinishedAtLTE(v time.Time) predicate.Job
- func FinishedAtNEQ(v time.Time) predicate.Job
- func FinishedAtNotIn(vs ...time.Time) predicate.Job
- func FinishedAtNotNil() predicate.Job
- func ID(id uint64) predicate.Job
- func IDEQ(id uint64) predicate.Job
- func IDGT(id uint64) predicate.Job
- func IDGTE(id uint64) predicate.Job
- func IDIn(ids ...uint64) predicate.Job
- func IDLT(id uint64) predicate.Job
- func IDLTE(id uint64) predicate.Job
- func IDNEQ(id uint64) predicate.Job
- func IDNotIn(ids ...uint64) predicate.Job
- func Not(p predicate.Job) predicate.Job
- func Or(predicates ...predicate.Job) predicate.Job
- func Priority(v uint) predicate.Job
- func PriorityEQ(v uint) predicate.Job
- func PriorityGT(v uint) predicate.Job
- func PriorityGTE(v uint) predicate.Job
- func PriorityIn(vs ...uint) predicate.Job
- func PriorityLT(v uint) predicate.Job
- func PriorityLTE(v uint) predicate.Job
- func PriorityNEQ(v uint) predicate.Job
- func PriorityNotIn(vs ...uint) predicate.Job
- func QueueName(v string) predicate.Job
- func QueueNameContains(v string) predicate.Job
- func QueueNameContainsFold(v string) predicate.Job
- func QueueNameEQ(v string) predicate.Job
- func QueueNameEqualFold(v string) predicate.Job
- func QueueNameGT(v string) predicate.Job
- func QueueNameGTE(v string) predicate.Job
- func QueueNameHasPrefix(v string) predicate.Job
- func QueueNameHasSuffix(v string) predicate.Job
- func QueueNameIn(vs ...string) predicate.Job
- func QueueNameLT(v string) predicate.Job
- func QueueNameLTE(v string) predicate.Job
- func QueueNameNEQ(v string) predicate.Job
- func QueueNameNotIn(vs ...string) predicate.Job
- func RefID(v string) predicate.Job
- func RefIDContains(v string) predicate.Job
- func RefIDContainsFold(v string) predicate.Job
- func RefIDEQ(v string) predicate.Job
- func RefIDEqualFold(v string) predicate.Job
- func RefIDGT(v string) predicate.Job
- func RefIDGTE(v string) predicate.Job
- func RefIDHasPrefix(v string) predicate.Job
- func RefIDHasSuffix(v string) predicate.Job
- func RefIDIn(vs ...string) predicate.Job
- func RefIDLT(v string) predicate.Job
- func RefIDLTE(v string) predicate.Job
- func RefIDNEQ(v string) predicate.Job
- func RefIDNotIn(vs ...string) predicate.Job
- func RetryTimes(v uint) predicate.Job
- func RetryTimesEQ(v uint) predicate.Job
- func RetryTimesGT(v uint) predicate.Job
- func RetryTimesGTE(v uint) predicate.Job
- func RetryTimesIn(vs ...uint) predicate.Job
- func RetryTimesLT(v uint) predicate.Job
- func RetryTimesLTE(v uint) predicate.Job
- func RetryTimesNEQ(v uint) predicate.Job
- func RetryTimesNotIn(vs ...uint) predicate.Job
- func ScheduledAt(v time.Time) predicate.Job
- func ScheduledAtEQ(v time.Time) predicate.Job
- func ScheduledAtGT(v time.Time) predicate.Job
- func ScheduledAtGTE(v time.Time) predicate.Job
- func ScheduledAtIn(vs ...time.Time) predicate.Job
- func ScheduledAtLT(v time.Time) predicate.Job
- func ScheduledAtLTE(v time.Time) predicate.Job
- func ScheduledAtNEQ(v time.Time) predicate.Job
- func ScheduledAtNotIn(vs ...time.Time) predicate.Job
- func StatusEQ(v Status) predicate.Job
- func StatusIn(vs ...Status) predicate.Job
- func StatusNEQ(v Status) predicate.Job
- func StatusNotIn(vs ...Status) predicate.Job
- func StatusValidator(s Status) error
- func UpdatedAt(v time.Time) predicate.Job
- func UpdatedAtEQ(v time.Time) predicate.Job
- func UpdatedAtGT(v time.Time) predicate.Job
- func UpdatedAtGTE(v time.Time) predicate.Job
- func UpdatedAtIn(vs ...time.Time) predicate.Job
- func UpdatedAtLT(v time.Time) predicate.Job
- func UpdatedAtLTE(v time.Time) predicate.Job
- func UpdatedAtNEQ(v time.Time) predicate.Job
- func UpdatedAtNotIn(vs ...time.Time) predicate.Job
- func ValidColumn(column string) bool
- type OrderOption
- func ByBody(opts ...sql.OrderTermOption) OrderOption
- func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
- func ByError(opts ...sql.OrderTermOption) OrderOption
- func ByFinishedAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByPriority(opts ...sql.OrderTermOption) OrderOption
- func ByQueueName(opts ...sql.OrderTermOption) OrderOption
- func ByRefID(opts ...sql.OrderTermOption) OrderOption
- func ByRetryTimes(opts ...sql.OrderTermOption) OrderOption
- func ByScheduledAt(opts ...sql.OrderTermOption) OrderOption
- func ByStatus(opts ...sql.OrderTermOption) OrderOption
- func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
- type Status
Constants ¶
const ( // Label holds the string label denoting the job type in the database. Label = "job" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldCreatedAt holds the string denoting the created_at field in the database. FieldCreatedAt = "created_at" // FieldUpdatedAt holds the string denoting the updated_at field in the database. FieldUpdatedAt = "updated_at" // FieldStatus holds the string denoting the status field in the database. FieldStatus = "status" // FieldQueueName holds the string denoting the queue_name field in the database. FieldQueueName = "queue_name" // FieldRefID holds the string denoting the ref_id field in the database. FieldRefID = "ref_id" // FieldPriority holds the string denoting the priority field in the database. FieldPriority = "priority" // FieldRetryTimes holds the string denoting the retry_times field in the database. FieldRetryTimes = "retry_times" // FieldBody holds the string denoting the body field in the database. FieldBody = "body" // FieldError holds the string denoting the error field in the database. FieldError = "error" // FieldScheduledAt holds the string denoting the scheduled_at field in the database. FieldScheduledAt = "scheduled_at" // FieldFinishedAt holds the string denoting the finished_at field in the database. FieldFinishedAt = "finished_at" // Table holds the table name of the job in the database. Table = "sssq_scheduled_jobs" )
const DefaultStatus = StatusInit
StatusInit is the default value of the Status enum.
Variables ¶
var ( // DefaultCreatedAt holds the default value on creation for the "created_at" field. DefaultCreatedAt func() time.Time // DefaultUpdatedAt holds the default value on creation for the "updated_at" field. DefaultUpdatedAt func() time.Time // UpdateDefaultUpdatedAt holds the default value on update for the "updated_at" field. UpdateDefaultUpdatedAt func() time.Time // DefaultQueueName holds the default value on creation for the "queue_name" field. DefaultQueueName string // DefaultRefID holds the default value on creation for the "ref_id" field. DefaultRefID func() string // DefaultPriority holds the default value on creation for the "priority" field. DefaultPriority uint // DefaultRetryTimes holds the default value on creation for the "retry_times" field. DefaultRetryTimes uint // DefaultScheduledAt holds the default value on creation for the "scheduled_at" field. DefaultScheduledAt func() time.Time )
var Columns = []string{ FieldID, FieldCreatedAt, FieldUpdatedAt, FieldStatus, FieldQueueName, FieldRefID, FieldPriority, FieldRetryTimes, FieldBody, FieldError, FieldScheduledAt, FieldFinishedAt, }
Columns holds all SQL columns for job fields.
Functions ¶
func BodyContains ¶
BodyContains applies the Contains predicate on the "body" field.
func BodyContainsFold ¶
BodyContainsFold applies the ContainsFold predicate on the "body" field.
func BodyEqualFold ¶
BodyEqualFold applies the EqualFold predicate on the "body" field.
func BodyHasPrefix ¶
BodyHasPrefix applies the HasPrefix predicate on the "body" field.
func BodyHasSuffix ¶
BodyHasSuffix applies the HasSuffix predicate on the "body" field.
func BodyNotNil ¶
BodyNotNil applies the NotNil predicate on the "body" field.
func CreatedAt ¶
CreatedAt applies equality check predicate on the "created_at" field. It's identical to CreatedAtEQ.
func CreatedAtEQ ¶
CreatedAtEQ applies the EQ predicate on the "created_at" field.
func CreatedAtGT ¶
CreatedAtGT applies the GT predicate on the "created_at" field.
func CreatedAtGTE ¶
CreatedAtGTE applies the GTE predicate on the "created_at" field.
func CreatedAtIn ¶
CreatedAtIn applies the In predicate on the "created_at" field.
func CreatedAtLT ¶
CreatedAtLT applies the LT predicate on the "created_at" field.
func CreatedAtLTE ¶
CreatedAtLTE applies the LTE predicate on the "created_at" field.
func CreatedAtNEQ ¶
CreatedAtNEQ applies the NEQ predicate on the "created_at" field.
func CreatedAtNotIn ¶
CreatedAtNotIn applies the NotIn predicate on the "created_at" field.
func Error ¶
Error applies equality check predicate on the "error" field. It's identical to ErrorEQ.
func ErrorContains ¶
ErrorContains applies the Contains predicate on the "error" field.
func ErrorContainsFold ¶
ErrorContainsFold applies the ContainsFold predicate on the "error" field.
func ErrorEqualFold ¶
ErrorEqualFold applies the EqualFold predicate on the "error" field.
func ErrorHasPrefix ¶
ErrorHasPrefix applies the HasPrefix predicate on the "error" field.
func ErrorHasSuffix ¶
ErrorHasSuffix applies the HasSuffix predicate on the "error" field.
func ErrorIsNil ¶
ErrorIsNil applies the IsNil predicate on the "error" field.
func ErrorNotIn ¶
ErrorNotIn applies the NotIn predicate on the "error" field.
func ErrorNotNil ¶
ErrorNotNil applies the NotNil predicate on the "error" field.
func FinishedAt ¶
FinishedAt applies equality check predicate on the "finished_at" field. It's identical to FinishedAtEQ.
func FinishedAtEQ ¶
FinishedAtEQ applies the EQ predicate on the "finished_at" field.
func FinishedAtGT ¶
FinishedAtGT applies the GT predicate on the "finished_at" field.
func FinishedAtGTE ¶
FinishedAtGTE applies the GTE predicate on the "finished_at" field.
func FinishedAtIn ¶
FinishedAtIn applies the In predicate on the "finished_at" field.
func FinishedAtIsNil ¶
FinishedAtIsNil applies the IsNil predicate on the "finished_at" field.
func FinishedAtLT ¶
FinishedAtLT applies the LT predicate on the "finished_at" field.
func FinishedAtLTE ¶
FinishedAtLTE applies the LTE predicate on the "finished_at" field.
func FinishedAtNEQ ¶
FinishedAtNEQ applies the NEQ predicate on the "finished_at" field.
func FinishedAtNotIn ¶
FinishedAtNotIn applies the NotIn predicate on the "finished_at" field.
func FinishedAtNotNil ¶
FinishedAtNotNil applies the NotNil predicate on the "finished_at" field.
func Priority ¶
Priority applies equality check predicate on the "priority" field. It's identical to PriorityEQ.
func PriorityEQ ¶
PriorityEQ applies the EQ predicate on the "priority" field.
func PriorityGT ¶
PriorityGT applies the GT predicate on the "priority" field.
func PriorityGTE ¶
PriorityGTE applies the GTE predicate on the "priority" field.
func PriorityIn ¶
PriorityIn applies the In predicate on the "priority" field.
func PriorityLT ¶
PriorityLT applies the LT predicate on the "priority" field.
func PriorityLTE ¶
PriorityLTE applies the LTE predicate on the "priority" field.
func PriorityNEQ ¶
PriorityNEQ applies the NEQ predicate on the "priority" field.
func PriorityNotIn ¶
PriorityNotIn applies the NotIn predicate on the "priority" field.
func QueueName ¶
QueueName applies equality check predicate on the "queue_name" field. It's identical to QueueNameEQ.
func QueueNameContains ¶
QueueNameContains applies the Contains predicate on the "queue_name" field.
func QueueNameContainsFold ¶
QueueNameContainsFold applies the ContainsFold predicate on the "queue_name" field.
func QueueNameEQ ¶
QueueNameEQ applies the EQ predicate on the "queue_name" field.
func QueueNameEqualFold ¶
QueueNameEqualFold applies the EqualFold predicate on the "queue_name" field.
func QueueNameGT ¶
QueueNameGT applies the GT predicate on the "queue_name" field.
func QueueNameGTE ¶
QueueNameGTE applies the GTE predicate on the "queue_name" field.
func QueueNameHasPrefix ¶
QueueNameHasPrefix applies the HasPrefix predicate on the "queue_name" field.
func QueueNameHasSuffix ¶
QueueNameHasSuffix applies the HasSuffix predicate on the "queue_name" field.
func QueueNameIn ¶
QueueNameIn applies the In predicate on the "queue_name" field.
func QueueNameLT ¶
QueueNameLT applies the LT predicate on the "queue_name" field.
func QueueNameLTE ¶
QueueNameLTE applies the LTE predicate on the "queue_name" field.
func QueueNameNEQ ¶
QueueNameNEQ applies the NEQ predicate on the "queue_name" field.
func QueueNameNotIn ¶
QueueNameNotIn applies the NotIn predicate on the "queue_name" field.
func RefID ¶
RefID applies equality check predicate on the "ref_id" field. It's identical to RefIDEQ.
func RefIDContains ¶
RefIDContains applies the Contains predicate on the "ref_id" field.
func RefIDContainsFold ¶
RefIDContainsFold applies the ContainsFold predicate on the "ref_id" field.
func RefIDEqualFold ¶
RefIDEqualFold applies the EqualFold predicate on the "ref_id" field.
func RefIDHasPrefix ¶
RefIDHasPrefix applies the HasPrefix predicate on the "ref_id" field.
func RefIDHasSuffix ¶
RefIDHasSuffix applies the HasSuffix predicate on the "ref_id" field.
func RefIDNotIn ¶
RefIDNotIn applies the NotIn predicate on the "ref_id" field.
func RetryTimes ¶
RetryTimes applies equality check predicate on the "retry_times" field. It's identical to RetryTimesEQ.
func RetryTimesEQ ¶
RetryTimesEQ applies the EQ predicate on the "retry_times" field.
func RetryTimesGT ¶
RetryTimesGT applies the GT predicate on the "retry_times" field.
func RetryTimesGTE ¶
RetryTimesGTE applies the GTE predicate on the "retry_times" field.
func RetryTimesIn ¶
RetryTimesIn applies the In predicate on the "retry_times" field.
func RetryTimesLT ¶
RetryTimesLT applies the LT predicate on the "retry_times" field.
func RetryTimesLTE ¶
RetryTimesLTE applies the LTE predicate on the "retry_times" field.
func RetryTimesNEQ ¶
RetryTimesNEQ applies the NEQ predicate on the "retry_times" field.
func RetryTimesNotIn ¶
RetryTimesNotIn applies the NotIn predicate on the "retry_times" field.
func ScheduledAt ¶
ScheduledAt applies equality check predicate on the "scheduled_at" field. It's identical to ScheduledAtEQ.
func ScheduledAtEQ ¶
ScheduledAtEQ applies the EQ predicate on the "scheduled_at" field.
func ScheduledAtGT ¶
ScheduledAtGT applies the GT predicate on the "scheduled_at" field.
func ScheduledAtGTE ¶
ScheduledAtGTE applies the GTE predicate on the "scheduled_at" field.
func ScheduledAtIn ¶
ScheduledAtIn applies the In predicate on the "scheduled_at" field.
func ScheduledAtLT ¶
ScheduledAtLT applies the LT predicate on the "scheduled_at" field.
func ScheduledAtLTE ¶
ScheduledAtLTE applies the LTE predicate on the "scheduled_at" field.
func ScheduledAtNEQ ¶
ScheduledAtNEQ applies the NEQ predicate on the "scheduled_at" field.
func ScheduledAtNotIn ¶
ScheduledAtNotIn applies the NotIn predicate on the "scheduled_at" field.
func StatusNotIn ¶
StatusNotIn applies the NotIn predicate on the "status" field.
func StatusValidator ¶
StatusValidator is a validator for the "status" field enum values. It is called by the builders before save.
func UpdatedAt ¶
UpdatedAt applies equality check predicate on the "updated_at" field. It's identical to UpdatedAtEQ.
func UpdatedAtEQ ¶
UpdatedAtEQ applies the EQ predicate on the "updated_at" field.
func UpdatedAtGT ¶
UpdatedAtGT applies the GT predicate on the "updated_at" field.
func UpdatedAtGTE ¶
UpdatedAtGTE applies the GTE predicate on the "updated_at" field.
func UpdatedAtIn ¶
UpdatedAtIn applies the In predicate on the "updated_at" field.
func UpdatedAtLT ¶
UpdatedAtLT applies the LT predicate on the "updated_at" field.
func UpdatedAtLTE ¶
UpdatedAtLTE applies the LTE predicate on the "updated_at" field.
func UpdatedAtNEQ ¶
UpdatedAtNEQ applies the NEQ predicate on the "updated_at" field.
func UpdatedAtNotIn ¶
UpdatedAtNotIn applies the NotIn predicate on the "updated_at" field.
func ValidColumn ¶
ValidColumn reports if the column name is valid (part of the table columns).
Types ¶
type OrderOption ¶
OrderOption defines the ordering options for the Job queries.
func ByBody ¶
func ByBody(opts ...sql.OrderTermOption) OrderOption
ByBody orders the results by the body field.
func ByCreatedAt ¶
func ByCreatedAt(opts ...sql.OrderTermOption) OrderOption
ByCreatedAt orders the results by the created_at field.
func ByError ¶
func ByError(opts ...sql.OrderTermOption) OrderOption
ByError orders the results by the error field.
func ByFinishedAt ¶
func ByFinishedAt(opts ...sql.OrderTermOption) OrderOption
ByFinishedAt orders the results by the finished_at field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByPriority ¶
func ByPriority(opts ...sql.OrderTermOption) OrderOption
ByPriority orders the results by the priority field.
func ByQueueName ¶
func ByQueueName(opts ...sql.OrderTermOption) OrderOption
ByQueueName orders the results by the queue_name field.
func ByRefID ¶
func ByRefID(opts ...sql.OrderTermOption) OrderOption
ByRefID orders the results by the ref_id field.
func ByRetryTimes ¶
func ByRetryTimes(opts ...sql.OrderTermOption) OrderOption
ByRetryTimes orders the results by the retry_times field.
func ByScheduledAt ¶
func ByScheduledAt(opts ...sql.OrderTermOption) OrderOption
ByScheduledAt orders the results by the scheduled_at field.
func ByStatus ¶
func ByStatus(opts ...sql.OrderTermOption) OrderOption
ByStatus orders the results by the status field.
func ByUpdatedAt ¶
func ByUpdatedAt(opts ...sql.OrderTermOption) OrderOption
ByUpdatedAt orders the results by the updated_at field.