Documentation ¶
Index ¶
- Constants
- Variables
- func And(predicates ...predicate.Delivery) predicate.Delivery
- func AttemptAt(v time.Time) predicate.Delivery
- func AttemptAtEQ(v time.Time) predicate.Delivery
- func AttemptAtGT(v time.Time) predicate.Delivery
- func AttemptAtGTE(v time.Time) predicate.Delivery
- func AttemptAtIn(vs ...time.Time) predicate.Delivery
- func AttemptAtLT(v time.Time) predicate.Delivery
- func AttemptAtLTE(v time.Time) predicate.Delivery
- func AttemptAtNEQ(v time.Time) predicate.Delivery
- func AttemptAtNotIn(vs ...time.Time) predicate.Delivery
- func Attempts(v int) predicate.Delivery
- func AttemptsEQ(v int) predicate.Delivery
- func AttemptsGT(v int) predicate.Delivery
- func AttemptsGTE(v int) predicate.Delivery
- func AttemptsIn(vs ...int) predicate.Delivery
- func AttemptsLT(v int) predicate.Delivery
- func AttemptsLTE(v int) predicate.Delivery
- func AttemptsNEQ(v int) predicate.Delivery
- func AttemptsNotIn(vs ...int) predicate.Delivery
- func CompletedAt(v time.Time) predicate.Delivery
- func CompletedAtEQ(v time.Time) predicate.Delivery
- func CompletedAtGT(v time.Time) predicate.Delivery
- func CompletedAtGTE(v time.Time) predicate.Delivery
- func CompletedAtIn(vs ...time.Time) predicate.Delivery
- func CompletedAtIsNil() predicate.Delivery
- func CompletedAtLT(v time.Time) predicate.Delivery
- func CompletedAtLTE(v time.Time) predicate.Delivery
- func CompletedAtNEQ(v time.Time) predicate.Delivery
- func CompletedAtNotIn(vs ...time.Time) predicate.Delivery
- func CompletedAtNotNil() predicate.Delivery
- func ExpiresAt(v time.Time) predicate.Delivery
- func ExpiresAtEQ(v time.Time) predicate.Delivery
- func ExpiresAtGT(v time.Time) predicate.Delivery
- func ExpiresAtGTE(v time.Time) predicate.Delivery
- func ExpiresAtIn(vs ...time.Time) predicate.Delivery
- func ExpiresAtLT(v time.Time) predicate.Delivery
- func ExpiresAtLTE(v time.Time) predicate.Delivery
- func ExpiresAtNEQ(v time.Time) predicate.Delivery
- func ExpiresAtNotIn(vs ...time.Time) predicate.Delivery
- func HasMessage() predicate.Delivery
- func HasMessageWith(preds ...predicate.Message) predicate.Delivery
- func HasNextReady() predicate.Delivery
- func HasNextReadyWith(preds ...predicate.Delivery) predicate.Delivery
- func HasNotBefore() predicate.Delivery
- func HasNotBeforeWith(preds ...predicate.Delivery) predicate.Delivery
- func HasSubscription() predicate.Delivery
- func HasSubscriptionWith(preds ...predicate.Subscription) predicate.Delivery
- func ID(id uuid.UUID) predicate.Delivery
- func IDEQ(id uuid.UUID) predicate.Delivery
- func IDGT(id uuid.UUID) predicate.Delivery
- func IDGTE(id uuid.UUID) predicate.Delivery
- func IDIn(ids ...uuid.UUID) predicate.Delivery
- func IDLT(id uuid.UUID) predicate.Delivery
- func IDLTE(id uuid.UUID) predicate.Delivery
- func IDNEQ(id uuid.UUID) predicate.Delivery
- func IDNotIn(ids ...uuid.UUID) predicate.Delivery
- func LastAttemptedAt(v time.Time) predicate.Delivery
- func LastAttemptedAtEQ(v time.Time) predicate.Delivery
- func LastAttemptedAtGT(v time.Time) predicate.Delivery
- func LastAttemptedAtGTE(v time.Time) predicate.Delivery
- func LastAttemptedAtIn(vs ...time.Time) predicate.Delivery
- func LastAttemptedAtIsNil() predicate.Delivery
- func LastAttemptedAtLT(v time.Time) predicate.Delivery
- func LastAttemptedAtLTE(v time.Time) predicate.Delivery
- func LastAttemptedAtNEQ(v time.Time) predicate.Delivery
- func LastAttemptedAtNotIn(vs ...time.Time) predicate.Delivery
- func LastAttemptedAtNotNil() predicate.Delivery
- func MessageID(v uuid.UUID) predicate.Delivery
- func MessageIDEQ(v uuid.UUID) predicate.Delivery
- func MessageIDIn(vs ...uuid.UUID) predicate.Delivery
- func MessageIDNEQ(v uuid.UUID) predicate.Delivery
- func MessageIDNotIn(vs ...uuid.UUID) predicate.Delivery
- func Not(p predicate.Delivery) predicate.Delivery
- func NotBeforeID(v uuid.UUID) predicate.Delivery
- func NotBeforeIDEQ(v uuid.UUID) predicate.Delivery
- func NotBeforeIDIn(vs ...uuid.UUID) predicate.Delivery
- func NotBeforeIDIsNil() predicate.Delivery
- func NotBeforeIDNEQ(v uuid.UUID) predicate.Delivery
- func NotBeforeIDNotIn(vs ...uuid.UUID) predicate.Delivery
- func NotBeforeIDNotNil() predicate.Delivery
- func Or(predicates ...predicate.Delivery) predicate.Delivery
- func PublishedAt(v time.Time) predicate.Delivery
- func PublishedAtEQ(v time.Time) predicate.Delivery
- func PublishedAtGT(v time.Time) predicate.Delivery
- func PublishedAtGTE(v time.Time) predicate.Delivery
- func PublishedAtIn(vs ...time.Time) predicate.Delivery
- func PublishedAtLT(v time.Time) predicate.Delivery
- func PublishedAtLTE(v time.Time) predicate.Delivery
- func PublishedAtNEQ(v time.Time) predicate.Delivery
- func PublishedAtNotIn(vs ...time.Time) predicate.Delivery
- func SubscriptionID(v uuid.UUID) predicate.Delivery
- func SubscriptionIDEQ(v uuid.UUID) predicate.Delivery
- func SubscriptionIDIn(vs ...uuid.UUID) predicate.Delivery
- func SubscriptionIDNEQ(v uuid.UUID) predicate.Delivery
- func SubscriptionIDNotIn(vs ...uuid.UUID) predicate.Delivery
- func ValidColumn(column string) bool
- type OrderOption
- func ByAttemptAt(opts ...sql.OrderTermOption) OrderOption
- func ByAttempts(opts ...sql.OrderTermOption) OrderOption
- func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
- func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
- func ByID(opts ...sql.OrderTermOption) OrderOption
- func ByLastAttemptedAt(opts ...sql.OrderTermOption) OrderOption
- func ByMessageField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByMessageID(opts ...sql.OrderTermOption) OrderOption
- func ByNextReady(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
- func ByNextReadyCount(opts ...sql.OrderTermOption) OrderOption
- func ByNotBeforeField(field string, opts ...sql.OrderTermOption) OrderOption
- func ByNotBeforeID(opts ...sql.OrderTermOption) OrderOption
- func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
- func BySubscriptionField(field string, opts ...sql.OrderTermOption) OrderOption
- func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption
Constants ¶
const ( // Label holds the string label denoting the delivery type in the database. Label = "delivery" // FieldID holds the string denoting the id field in the database. FieldID = "id" // FieldMessageID holds the string denoting the messageid field in the database. FieldMessageID = "message_id" // FieldSubscriptionID holds the string denoting the subscriptionid field in the database. FieldSubscriptionID = "subscription_id" // FieldPublishedAt holds the string denoting the publishedat field in the database. FieldPublishedAt = "published_at" // FieldAttemptAt holds the string denoting the attemptat field in the database. FieldAttemptAt = "attempt_at" // FieldLastAttemptedAt holds the string denoting the lastattemptedat field in the database. FieldLastAttemptedAt = "last_attempted_at" // FieldAttempts holds the string denoting the attempts field in the database. FieldAttempts = "attempts" // FieldCompletedAt holds the string denoting the completedat field in the database. FieldCompletedAt = "completed_at" // FieldExpiresAt holds the string denoting the expiresat field in the database. FieldExpiresAt = "expires_at" // FieldNotBeforeID holds the string denoting the notbeforeid field in the database. FieldNotBeforeID = "not_before_id" // EdgeMessage holds the string denoting the message edge name in mutations. EdgeMessage = "message" // EdgeSubscription holds the string denoting the subscription edge name in mutations. EdgeSubscription = "subscription" // EdgeNotBefore holds the string denoting the notbefore edge name in mutations. EdgeNotBefore = "notBefore" // EdgeNextReady holds the string denoting the nextready edge name in mutations. EdgeNextReady = "nextReady" // Table holds the table name of the delivery in the database. Table = "deliveries" // MessageTable is the table that holds the message relation/edge. MessageTable = "deliveries" // MessageInverseTable is the table name for the Message entity. // It exists in this package in order to avoid circular dependency with the "message" package. MessageInverseTable = "messages" // MessageColumn is the table column denoting the message relation/edge. MessageColumn = "message_id" // SubscriptionTable is the table that holds the subscription relation/edge. SubscriptionTable = "deliveries" // SubscriptionInverseTable is the table name for the Subscription entity. // It exists in this package in order to avoid circular dependency with the "subscription" package. SubscriptionInverseTable = "subscriptions" // SubscriptionColumn is the table column denoting the subscription relation/edge. SubscriptionColumn = "subscription_id" // NotBeforeTable is the table that holds the notBefore relation/edge. NotBeforeTable = "deliveries" // NotBeforeColumn is the table column denoting the notBefore relation/edge. NotBeforeColumn = "not_before_id" // NextReadyTable is the table that holds the nextReady relation/edge. NextReadyTable = "deliveries" // NextReadyColumn is the table column denoting the nextReady relation/edge. NextReadyColumn = "not_before_id" )
Variables ¶
var ( // DefaultPublishedAt holds the default value on creation for the "publishedAt" field. DefaultPublishedAt func() time.Time // DefaultAttemptAt holds the default value on creation for the "attemptAt" field. DefaultAttemptAt func() time.Time // DefaultAttempts holds the default value on creation for the "attempts" field. DefaultAttempts int // DefaultID holds the default value on creation for the "id" field. DefaultID func() uuid.UUID )
var Columns = []string{ FieldID, FieldMessageID, FieldSubscriptionID, FieldPublishedAt, FieldAttemptAt, FieldLastAttemptedAt, FieldAttempts, FieldCompletedAt, FieldExpiresAt, FieldNotBeforeID, }
Columns holds all SQL columns for delivery fields.
Functions ¶
func AttemptAt ¶
AttemptAt applies equality check predicate on the "attemptAt" field. It's identical to AttemptAtEQ.
func AttemptAtEQ ¶
AttemptAtEQ applies the EQ predicate on the "attemptAt" field.
func AttemptAtGT ¶
AttemptAtGT applies the GT predicate on the "attemptAt" field.
func AttemptAtGTE ¶
AttemptAtGTE applies the GTE predicate on the "attemptAt" field.
func AttemptAtIn ¶
AttemptAtIn applies the In predicate on the "attemptAt" field.
func AttemptAtLT ¶
AttemptAtLT applies the LT predicate on the "attemptAt" field.
func AttemptAtLTE ¶
AttemptAtLTE applies the LTE predicate on the "attemptAt" field.
func AttemptAtNEQ ¶
AttemptAtNEQ applies the NEQ predicate on the "attemptAt" field.
func AttemptAtNotIn ¶
AttemptAtNotIn applies the NotIn predicate on the "attemptAt" field.
func Attempts ¶
Attempts applies equality check predicate on the "attempts" field. It's identical to AttemptsEQ.
func AttemptsEQ ¶
AttemptsEQ applies the EQ predicate on the "attempts" field.
func AttemptsGT ¶
AttemptsGT applies the GT predicate on the "attempts" field.
func AttemptsGTE ¶
AttemptsGTE applies the GTE predicate on the "attempts" field.
func AttemptsIn ¶
AttemptsIn applies the In predicate on the "attempts" field.
func AttemptsLT ¶
AttemptsLT applies the LT predicate on the "attempts" field.
func AttemptsLTE ¶
AttemptsLTE applies the LTE predicate on the "attempts" field.
func AttemptsNEQ ¶
AttemptsNEQ applies the NEQ predicate on the "attempts" field.
func AttemptsNotIn ¶
AttemptsNotIn applies the NotIn predicate on the "attempts" field.
func CompletedAt ¶
CompletedAt applies equality check predicate on the "completedAt" field. It's identical to CompletedAtEQ.
func CompletedAtEQ ¶
CompletedAtEQ applies the EQ predicate on the "completedAt" field.
func CompletedAtGT ¶
CompletedAtGT applies the GT predicate on the "completedAt" field.
func CompletedAtGTE ¶
CompletedAtGTE applies the GTE predicate on the "completedAt" field.
func CompletedAtIn ¶
CompletedAtIn applies the In predicate on the "completedAt" field.
func CompletedAtIsNil ¶
CompletedAtIsNil applies the IsNil predicate on the "completedAt" field.
func CompletedAtLT ¶
CompletedAtLT applies the LT predicate on the "completedAt" field.
func CompletedAtLTE ¶
CompletedAtLTE applies the LTE predicate on the "completedAt" field.
func CompletedAtNEQ ¶
CompletedAtNEQ applies the NEQ predicate on the "completedAt" field.
func CompletedAtNotIn ¶
CompletedAtNotIn applies the NotIn predicate on the "completedAt" field.
func CompletedAtNotNil ¶
CompletedAtNotNil applies the NotNil predicate on the "completedAt" field.
func ExpiresAt ¶
ExpiresAt applies equality check predicate on the "expiresAt" field. It's identical to ExpiresAtEQ.
func ExpiresAtEQ ¶
ExpiresAtEQ applies the EQ predicate on the "expiresAt" field.
func ExpiresAtGT ¶
ExpiresAtGT applies the GT predicate on the "expiresAt" field.
func ExpiresAtGTE ¶
ExpiresAtGTE applies the GTE predicate on the "expiresAt" field.
func ExpiresAtIn ¶
ExpiresAtIn applies the In predicate on the "expiresAt" field.
func ExpiresAtLT ¶
ExpiresAtLT applies the LT predicate on the "expiresAt" field.
func ExpiresAtLTE ¶
ExpiresAtLTE applies the LTE predicate on the "expiresAt" field.
func ExpiresAtNEQ ¶
ExpiresAtNEQ applies the NEQ predicate on the "expiresAt" field.
func ExpiresAtNotIn ¶
ExpiresAtNotIn applies the NotIn predicate on the "expiresAt" field.
func HasMessage ¶
HasMessage applies the HasEdge predicate on the "message" edge.
func HasMessageWith ¶
HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).
func HasNextReady ¶
HasNextReady applies the HasEdge predicate on the "nextReady" edge.
func HasNextReadyWith ¶
HasNextReadyWith applies the HasEdge predicate on the "nextReady" edge with a given conditions (other predicates).
func HasNotBefore ¶
HasNotBefore applies the HasEdge predicate on the "notBefore" edge.
func HasNotBeforeWith ¶
HasNotBeforeWith applies the HasEdge predicate on the "notBefore" edge with a given conditions (other predicates).
func HasSubscription ¶
HasSubscription applies the HasEdge predicate on the "subscription" edge.
func HasSubscriptionWith ¶
func HasSubscriptionWith(preds ...predicate.Subscription) predicate.Delivery
HasSubscriptionWith applies the HasEdge predicate on the "subscription" edge with a given conditions (other predicates).
func LastAttemptedAt ¶
LastAttemptedAt applies equality check predicate on the "lastAttemptedAt" field. It's identical to LastAttemptedAtEQ.
func LastAttemptedAtEQ ¶
LastAttemptedAtEQ applies the EQ predicate on the "lastAttemptedAt" field.
func LastAttemptedAtGT ¶
LastAttemptedAtGT applies the GT predicate on the "lastAttemptedAt" field.
func LastAttemptedAtGTE ¶
LastAttemptedAtGTE applies the GTE predicate on the "lastAttemptedAt" field.
func LastAttemptedAtIn ¶
LastAttemptedAtIn applies the In predicate on the "lastAttemptedAt" field.
func LastAttemptedAtIsNil ¶
LastAttemptedAtIsNil applies the IsNil predicate on the "lastAttemptedAt" field.
func LastAttemptedAtLT ¶
LastAttemptedAtLT applies the LT predicate on the "lastAttemptedAt" field.
func LastAttemptedAtLTE ¶
LastAttemptedAtLTE applies the LTE predicate on the "lastAttemptedAt" field.
func LastAttemptedAtNEQ ¶
LastAttemptedAtNEQ applies the NEQ predicate on the "lastAttemptedAt" field.
func LastAttemptedAtNotIn ¶
LastAttemptedAtNotIn applies the NotIn predicate on the "lastAttemptedAt" field.
func LastAttemptedAtNotNil ¶
LastAttemptedAtNotNil applies the NotNil predicate on the "lastAttemptedAt" field.
func MessageID ¶
MessageID applies equality check predicate on the "messageID" field. It's identical to MessageIDEQ.
func MessageIDEQ ¶
MessageIDEQ applies the EQ predicate on the "messageID" field.
func MessageIDIn ¶
MessageIDIn applies the In predicate on the "messageID" field.
func MessageIDNEQ ¶
MessageIDNEQ applies the NEQ predicate on the "messageID" field.
func MessageIDNotIn ¶
MessageIDNotIn applies the NotIn predicate on the "messageID" field.
func NotBeforeID ¶
NotBeforeID applies equality check predicate on the "notBeforeID" field. It's identical to NotBeforeIDEQ.
func NotBeforeIDEQ ¶
NotBeforeIDEQ applies the EQ predicate on the "notBeforeID" field.
func NotBeforeIDIn ¶
NotBeforeIDIn applies the In predicate on the "notBeforeID" field.
func NotBeforeIDIsNil ¶
NotBeforeIDIsNil applies the IsNil predicate on the "notBeforeID" field.
func NotBeforeIDNEQ ¶
NotBeforeIDNEQ applies the NEQ predicate on the "notBeforeID" field.
func NotBeforeIDNotIn ¶
NotBeforeIDNotIn applies the NotIn predicate on the "notBeforeID" field.
func NotBeforeIDNotNil ¶
NotBeforeIDNotNil applies the NotNil predicate on the "notBeforeID" field.
func PublishedAt ¶
PublishedAt applies equality check predicate on the "publishedAt" field. It's identical to PublishedAtEQ.
func PublishedAtEQ ¶
PublishedAtEQ applies the EQ predicate on the "publishedAt" field.
func PublishedAtGT ¶
PublishedAtGT applies the GT predicate on the "publishedAt" field.
func PublishedAtGTE ¶
PublishedAtGTE applies the GTE predicate on the "publishedAt" field.
func PublishedAtIn ¶
PublishedAtIn applies the In predicate on the "publishedAt" field.
func PublishedAtLT ¶
PublishedAtLT applies the LT predicate on the "publishedAt" field.
func PublishedAtLTE ¶
PublishedAtLTE applies the LTE predicate on the "publishedAt" field.
func PublishedAtNEQ ¶
PublishedAtNEQ applies the NEQ predicate on the "publishedAt" field.
func PublishedAtNotIn ¶
PublishedAtNotIn applies the NotIn predicate on the "publishedAt" field.
func SubscriptionID ¶
SubscriptionID applies equality check predicate on the "subscriptionID" field. It's identical to SubscriptionIDEQ.
func SubscriptionIDEQ ¶
SubscriptionIDEQ applies the EQ predicate on the "subscriptionID" field.
func SubscriptionIDIn ¶
SubscriptionIDIn applies the In predicate on the "subscriptionID" field.
func SubscriptionIDNEQ ¶
SubscriptionIDNEQ applies the NEQ predicate on the "subscriptionID" field.
func SubscriptionIDNotIn ¶
SubscriptionIDNotIn applies the NotIn predicate on the "subscriptionID" 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 Delivery queries.
func ByAttemptAt ¶
func ByAttemptAt(opts ...sql.OrderTermOption) OrderOption
ByAttemptAt orders the results by the attemptAt field.
func ByAttempts ¶
func ByAttempts(opts ...sql.OrderTermOption) OrderOption
ByAttempts orders the results by the attempts field.
func ByCompletedAt ¶
func ByCompletedAt(opts ...sql.OrderTermOption) OrderOption
ByCompletedAt orders the results by the completedAt field.
func ByExpiresAt ¶
func ByExpiresAt(opts ...sql.OrderTermOption) OrderOption
ByExpiresAt orders the results by the expiresAt field.
func ByID ¶
func ByID(opts ...sql.OrderTermOption) OrderOption
ByID orders the results by the id field.
func ByLastAttemptedAt ¶
func ByLastAttemptedAt(opts ...sql.OrderTermOption) OrderOption
ByLastAttemptedAt orders the results by the lastAttemptedAt field.
func ByMessageField ¶
func ByMessageField(field string, opts ...sql.OrderTermOption) OrderOption
ByMessageField orders the results by message field.
func ByMessageID ¶
func ByMessageID(opts ...sql.OrderTermOption) OrderOption
ByMessageID orders the results by the messageID field.
func ByNextReady ¶
func ByNextReady(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption
ByNextReady orders the results by nextReady terms.
func ByNextReadyCount ¶
func ByNextReadyCount(opts ...sql.OrderTermOption) OrderOption
ByNextReadyCount orders the results by nextReady count.
func ByNotBeforeField ¶
func ByNotBeforeField(field string, opts ...sql.OrderTermOption) OrderOption
ByNotBeforeField orders the results by notBefore field.
func ByNotBeforeID ¶
func ByNotBeforeID(opts ...sql.OrderTermOption) OrderOption
ByNotBeforeID orders the results by the notBeforeID field.
func ByPublishedAt ¶
func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption
ByPublishedAt orders the results by the publishedAt field.
func BySubscriptionField ¶
func BySubscriptionField(field string, opts ...sql.OrderTermOption) OrderOption
BySubscriptionField orders the results by subscription field.
func BySubscriptionID ¶
func BySubscriptionID(opts ...sql.OrderTermOption) OrderOption
BySubscriptionID orders the results by the subscriptionID field.