delivery

package
v0.13.54 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2025 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
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

View Source
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
)

Columns holds all SQL columns for delivery fields.

Functions

func And

func And(predicates ...predicate.Delivery) predicate.Delivery

And groups predicates with the AND operator between them.

func AttemptAt

func AttemptAt(v time.Time) predicate.Delivery

AttemptAt applies equality check predicate on the "attemptAt" field. It's identical to AttemptAtEQ.

func AttemptAtEQ

func AttemptAtEQ(v time.Time) predicate.Delivery

AttemptAtEQ applies the EQ predicate on the "attemptAt" field.

func AttemptAtGT

func AttemptAtGT(v time.Time) predicate.Delivery

AttemptAtGT applies the GT predicate on the "attemptAt" field.

func AttemptAtGTE

func AttemptAtGTE(v time.Time) predicate.Delivery

AttemptAtGTE applies the GTE predicate on the "attemptAt" field.

func AttemptAtIn

func AttemptAtIn(vs ...time.Time) predicate.Delivery

AttemptAtIn applies the In predicate on the "attemptAt" field.

func AttemptAtLT

func AttemptAtLT(v time.Time) predicate.Delivery

AttemptAtLT applies the LT predicate on the "attemptAt" field.

func AttemptAtLTE

func AttemptAtLTE(v time.Time) predicate.Delivery

AttemptAtLTE applies the LTE predicate on the "attemptAt" field.

func AttemptAtNEQ

func AttemptAtNEQ(v time.Time) predicate.Delivery

AttemptAtNEQ applies the NEQ predicate on the "attemptAt" field.

func AttemptAtNotIn

func AttemptAtNotIn(vs ...time.Time) predicate.Delivery

AttemptAtNotIn applies the NotIn predicate on the "attemptAt" field.

func Attempts

func Attempts(v int) predicate.Delivery

Attempts applies equality check predicate on the "attempts" field. It's identical to AttemptsEQ.

func AttemptsEQ

func AttemptsEQ(v int) predicate.Delivery

AttemptsEQ applies the EQ predicate on the "attempts" field.

func AttemptsGT

func AttemptsGT(v int) predicate.Delivery

AttemptsGT applies the GT predicate on the "attempts" field.

func AttemptsGTE

func AttemptsGTE(v int) predicate.Delivery

AttemptsGTE applies the GTE predicate on the "attempts" field.

func AttemptsIn

func AttemptsIn(vs ...int) predicate.Delivery

AttemptsIn applies the In predicate on the "attempts" field.

func AttemptsLT

func AttemptsLT(v int) predicate.Delivery

AttemptsLT applies the LT predicate on the "attempts" field.

func AttemptsLTE

func AttemptsLTE(v int) predicate.Delivery

AttemptsLTE applies the LTE predicate on the "attempts" field.

func AttemptsNEQ

func AttemptsNEQ(v int) predicate.Delivery

AttemptsNEQ applies the NEQ predicate on the "attempts" field.

func AttemptsNotIn

func AttemptsNotIn(vs ...int) predicate.Delivery

AttemptsNotIn applies the NotIn predicate on the "attempts" field.

func CompletedAt

func CompletedAt(v time.Time) predicate.Delivery

CompletedAt applies equality check predicate on the "completedAt" field. It's identical to CompletedAtEQ.

func CompletedAtEQ

func CompletedAtEQ(v time.Time) predicate.Delivery

CompletedAtEQ applies the EQ predicate on the "completedAt" field.

func CompletedAtGT

func CompletedAtGT(v time.Time) predicate.Delivery

CompletedAtGT applies the GT predicate on the "completedAt" field.

func CompletedAtGTE

func CompletedAtGTE(v time.Time) predicate.Delivery

CompletedAtGTE applies the GTE predicate on the "completedAt" field.

func CompletedAtIn

func CompletedAtIn(vs ...time.Time) predicate.Delivery

CompletedAtIn applies the In predicate on the "completedAt" field.

func CompletedAtIsNil

func CompletedAtIsNil() predicate.Delivery

CompletedAtIsNil applies the IsNil predicate on the "completedAt" field.

func CompletedAtLT

func CompletedAtLT(v time.Time) predicate.Delivery

CompletedAtLT applies the LT predicate on the "completedAt" field.

func CompletedAtLTE

func CompletedAtLTE(v time.Time) predicate.Delivery

CompletedAtLTE applies the LTE predicate on the "completedAt" field.

func CompletedAtNEQ

func CompletedAtNEQ(v time.Time) predicate.Delivery

CompletedAtNEQ applies the NEQ predicate on the "completedAt" field.

func CompletedAtNotIn

func CompletedAtNotIn(vs ...time.Time) predicate.Delivery

CompletedAtNotIn applies the NotIn predicate on the "completedAt" field.

func CompletedAtNotNil

func CompletedAtNotNil() predicate.Delivery

CompletedAtNotNil applies the NotNil predicate on the "completedAt" field.

func ExpiresAt

func ExpiresAt(v time.Time) predicate.Delivery

ExpiresAt applies equality check predicate on the "expiresAt" field. It's identical to ExpiresAtEQ.

func ExpiresAtEQ

func ExpiresAtEQ(v time.Time) predicate.Delivery

ExpiresAtEQ applies the EQ predicate on the "expiresAt" field.

func ExpiresAtGT

func ExpiresAtGT(v time.Time) predicate.Delivery

ExpiresAtGT applies the GT predicate on the "expiresAt" field.

func ExpiresAtGTE

func ExpiresAtGTE(v time.Time) predicate.Delivery

ExpiresAtGTE applies the GTE predicate on the "expiresAt" field.

func ExpiresAtIn

func ExpiresAtIn(vs ...time.Time) predicate.Delivery

ExpiresAtIn applies the In predicate on the "expiresAt" field.

func ExpiresAtLT

func ExpiresAtLT(v time.Time) predicate.Delivery

ExpiresAtLT applies the LT predicate on the "expiresAt" field.

func ExpiresAtLTE

func ExpiresAtLTE(v time.Time) predicate.Delivery

ExpiresAtLTE applies the LTE predicate on the "expiresAt" field.

func ExpiresAtNEQ

func ExpiresAtNEQ(v time.Time) predicate.Delivery

ExpiresAtNEQ applies the NEQ predicate on the "expiresAt" field.

func ExpiresAtNotIn

func ExpiresAtNotIn(vs ...time.Time) predicate.Delivery

ExpiresAtNotIn applies the NotIn predicate on the "expiresAt" field.

func HasMessage

func HasMessage() predicate.Delivery

HasMessage applies the HasEdge predicate on the "message" edge.

func HasMessageWith

func HasMessageWith(preds ...predicate.Message) predicate.Delivery

HasMessageWith applies the HasEdge predicate on the "message" edge with a given conditions (other predicates).

func HasNextReady

func HasNextReady() predicate.Delivery

HasNextReady applies the HasEdge predicate on the "nextReady" edge.

func HasNextReadyWith

func HasNextReadyWith(preds ...predicate.Delivery) predicate.Delivery

HasNextReadyWith applies the HasEdge predicate on the "nextReady" edge with a given conditions (other predicates).

func HasNotBefore

func HasNotBefore() predicate.Delivery

HasNotBefore applies the HasEdge predicate on the "notBefore" edge.

func HasNotBeforeWith

func HasNotBeforeWith(preds ...predicate.Delivery) predicate.Delivery

HasNotBeforeWith applies the HasEdge predicate on the "notBefore" edge with a given conditions (other predicates).

func HasSubscription

func HasSubscription() predicate.Delivery

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 ID

func ID(id uuid.UUID) predicate.Delivery

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Delivery

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Delivery

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Delivery

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...uuid.UUID) predicate.Delivery

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Delivery

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Delivery

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Delivery

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...uuid.UUID) predicate.Delivery

IDNotIn applies the NotIn predicate on the ID field.

func LastAttemptedAt

func LastAttemptedAt(v time.Time) predicate.Delivery

LastAttemptedAt applies equality check predicate on the "lastAttemptedAt" field. It's identical to LastAttemptedAtEQ.

func LastAttemptedAtEQ

func LastAttemptedAtEQ(v time.Time) predicate.Delivery

LastAttemptedAtEQ applies the EQ predicate on the "lastAttemptedAt" field.

func LastAttemptedAtGT

func LastAttemptedAtGT(v time.Time) predicate.Delivery

LastAttemptedAtGT applies the GT predicate on the "lastAttemptedAt" field.

func LastAttemptedAtGTE

func LastAttemptedAtGTE(v time.Time) predicate.Delivery

LastAttemptedAtGTE applies the GTE predicate on the "lastAttemptedAt" field.

func LastAttemptedAtIn

func LastAttemptedAtIn(vs ...time.Time) predicate.Delivery

LastAttemptedAtIn applies the In predicate on the "lastAttemptedAt" field.

func LastAttemptedAtIsNil

func LastAttemptedAtIsNil() predicate.Delivery

LastAttemptedAtIsNil applies the IsNil predicate on the "lastAttemptedAt" field.

func LastAttemptedAtLT

func LastAttemptedAtLT(v time.Time) predicate.Delivery

LastAttemptedAtLT applies the LT predicate on the "lastAttemptedAt" field.

func LastAttemptedAtLTE

func LastAttemptedAtLTE(v time.Time) predicate.Delivery

LastAttemptedAtLTE applies the LTE predicate on the "lastAttemptedAt" field.

func LastAttemptedAtNEQ

func LastAttemptedAtNEQ(v time.Time) predicate.Delivery

LastAttemptedAtNEQ applies the NEQ predicate on the "lastAttemptedAt" field.

func LastAttemptedAtNotIn

func LastAttemptedAtNotIn(vs ...time.Time) predicate.Delivery

LastAttemptedAtNotIn applies the NotIn predicate on the "lastAttemptedAt" field.

func LastAttemptedAtNotNil

func LastAttemptedAtNotNil() predicate.Delivery

LastAttemptedAtNotNil applies the NotNil predicate on the "lastAttemptedAt" field.

func MessageID

func MessageID(v uuid.UUID) predicate.Delivery

MessageID applies equality check predicate on the "messageID" field. It's identical to MessageIDEQ.

func MessageIDEQ

func MessageIDEQ(v uuid.UUID) predicate.Delivery

MessageIDEQ applies the EQ predicate on the "messageID" field.

func MessageIDIn

func MessageIDIn(vs ...uuid.UUID) predicate.Delivery

MessageIDIn applies the In predicate on the "messageID" field.

func MessageIDNEQ

func MessageIDNEQ(v uuid.UUID) predicate.Delivery

MessageIDNEQ applies the NEQ predicate on the "messageID" field.

func MessageIDNotIn

func MessageIDNotIn(vs ...uuid.UUID) predicate.Delivery

MessageIDNotIn applies the NotIn predicate on the "messageID" field.

func Not

Not applies the not operator on the given predicate.

func NotBeforeID

func NotBeforeID(v uuid.UUID) predicate.Delivery

NotBeforeID applies equality check predicate on the "notBeforeID" field. It's identical to NotBeforeIDEQ.

func NotBeforeIDEQ

func NotBeforeIDEQ(v uuid.UUID) predicate.Delivery

NotBeforeIDEQ applies the EQ predicate on the "notBeforeID" field.

func NotBeforeIDIn

func NotBeforeIDIn(vs ...uuid.UUID) predicate.Delivery

NotBeforeIDIn applies the In predicate on the "notBeforeID" field.

func NotBeforeIDIsNil

func NotBeforeIDIsNil() predicate.Delivery

NotBeforeIDIsNil applies the IsNil predicate on the "notBeforeID" field.

func NotBeforeIDNEQ

func NotBeforeIDNEQ(v uuid.UUID) predicate.Delivery

NotBeforeIDNEQ applies the NEQ predicate on the "notBeforeID" field.

func NotBeforeIDNotIn

func NotBeforeIDNotIn(vs ...uuid.UUID) predicate.Delivery

NotBeforeIDNotIn applies the NotIn predicate on the "notBeforeID" field.

func NotBeforeIDNotNil

func NotBeforeIDNotNil() predicate.Delivery

NotBeforeIDNotNil applies the NotNil predicate on the "notBeforeID" field.

func Or

func Or(predicates ...predicate.Delivery) predicate.Delivery

Or groups predicates with the OR operator between them.

func PublishedAt

func PublishedAt(v time.Time) predicate.Delivery

PublishedAt applies equality check predicate on the "publishedAt" field. It's identical to PublishedAtEQ.

func PublishedAtEQ

func PublishedAtEQ(v time.Time) predicate.Delivery

PublishedAtEQ applies the EQ predicate on the "publishedAt" field.

func PublishedAtGT

func PublishedAtGT(v time.Time) predicate.Delivery

PublishedAtGT applies the GT predicate on the "publishedAt" field.

func PublishedAtGTE

func PublishedAtGTE(v time.Time) predicate.Delivery

PublishedAtGTE applies the GTE predicate on the "publishedAt" field.

func PublishedAtIn

func PublishedAtIn(vs ...time.Time) predicate.Delivery

PublishedAtIn applies the In predicate on the "publishedAt" field.

func PublishedAtLT

func PublishedAtLT(v time.Time) predicate.Delivery

PublishedAtLT applies the LT predicate on the "publishedAt" field.

func PublishedAtLTE

func PublishedAtLTE(v time.Time) predicate.Delivery

PublishedAtLTE applies the LTE predicate on the "publishedAt" field.

func PublishedAtNEQ

func PublishedAtNEQ(v time.Time) predicate.Delivery

PublishedAtNEQ applies the NEQ predicate on the "publishedAt" field.

func PublishedAtNotIn

func PublishedAtNotIn(vs ...time.Time) predicate.Delivery

PublishedAtNotIn applies the NotIn predicate on the "publishedAt" field.

func SubscriptionID

func SubscriptionID(v uuid.UUID) predicate.Delivery

SubscriptionID applies equality check predicate on the "subscriptionID" field. It's identical to SubscriptionIDEQ.

func SubscriptionIDEQ

func SubscriptionIDEQ(v uuid.UUID) predicate.Delivery

SubscriptionIDEQ applies the EQ predicate on the "subscriptionID" field.

func SubscriptionIDIn

func SubscriptionIDIn(vs ...uuid.UUID) predicate.Delivery

SubscriptionIDIn applies the In predicate on the "subscriptionID" field.

func SubscriptionIDNEQ

func SubscriptionIDNEQ(v uuid.UUID) predicate.Delivery

SubscriptionIDNEQ applies the NEQ predicate on the "subscriptionID" field.

func SubscriptionIDNotIn

func SubscriptionIDNotIn(vs ...uuid.UUID) predicate.Delivery

SubscriptionIDNotIn applies the NotIn predicate on the "subscriptionID" field.

func ValidColumn

func ValidColumn(column string) bool

ValidColumn reports if the column name is valid (part of the table columns).

Types

type OrderOption

type OrderOption func(*sql.Selector)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL