message

package
v0.13.52 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// Label holds the string label denoting the message type in the database.
	Label = "message"
	// FieldID holds the string denoting the id field in the database.
	FieldID = "id"
	// FieldTopicID holds the string denoting the topicid field in the database.
	FieldTopicID = "topic_id"
	// FieldPayload holds the string denoting the payload field in the database.
	FieldPayload = "payload"
	// FieldAttributes holds the string denoting the attributes field in the database.
	FieldAttributes = "attributes"
	// FieldPublishedAt holds the string denoting the publishedat field in the database.
	FieldPublishedAt = "published_at"
	// FieldOrderKey holds the string denoting the orderkey field in the database.
	FieldOrderKey = "order_key"
	// EdgeDeliveries holds the string denoting the deliveries edge name in mutations.
	EdgeDeliveries = "deliveries"
	// EdgeTopic holds the string denoting the topic edge name in mutations.
	EdgeTopic = "topic"
	// Table holds the table name of the message in the database.
	Table = "messages"
	// DeliveriesTable is the table that holds the deliveries relation/edge.
	DeliveriesTable = "deliveries"
	// DeliveriesInverseTable is the table name for the Delivery entity.
	// It exists in this package in order to avoid circular dependency with the "delivery" package.
	DeliveriesInverseTable = "deliveries"
	// DeliveriesColumn is the table column denoting the deliveries relation/edge.
	DeliveriesColumn = "message_id"
	// TopicTable is the table that holds the topic relation/edge.
	TopicTable = "messages"
	// TopicInverseTable is the table name for the Topic entity.
	// It exists in this package in order to avoid circular dependency with the "topic" package.
	TopicInverseTable = "topics"
	// TopicColumn is the table column denoting the topic relation/edge.
	TopicColumn = "topic_id"
)

Variables

View Source
var (
	// DefaultPublishedAt holds the default value on creation for the "publishedAt" field.
	DefaultPublishedAt func() time.Time
	// DefaultID holds the default value on creation for the "id" field.
	DefaultID func() uuid.UUID
)

Columns holds all SQL columns for message fields.

Functions

func And

func And(predicates ...predicate.Message) predicate.Message

And groups predicates with the AND operator between them.

func AttributesIsNil

func AttributesIsNil() predicate.Message

AttributesIsNil applies the IsNil predicate on the "attributes" field.

func AttributesNotNil

func AttributesNotNil() predicate.Message

AttributesNotNil applies the NotNil predicate on the "attributes" field.

func HasDeliveries

func HasDeliveries() predicate.Message

HasDeliveries applies the HasEdge predicate on the "deliveries" edge.

func HasDeliveriesWith

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

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

func HasTopic

func HasTopic() predicate.Message

HasTopic applies the HasEdge predicate on the "topic" edge.

func HasTopicWith

func HasTopicWith(preds ...predicate.Topic) predicate.Message

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

func ID

func ID(id uuid.UUID) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id uuid.UUID) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id uuid.UUID) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id uuid.UUID) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

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

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id uuid.UUID) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id uuid.UUID) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id uuid.UUID) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

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

IDNotIn applies the NotIn predicate on the ID field.

func Not

Not applies the not operator on the given predicate.

func Or

func Or(predicates ...predicate.Message) predicate.Message

Or groups predicates with the OR operator between them.

func OrderKey

func OrderKey(v string) predicate.Message

OrderKey applies equality check predicate on the "orderKey" field. It's identical to OrderKeyEQ.

func OrderKeyContains

func OrderKeyContains(v string) predicate.Message

OrderKeyContains applies the Contains predicate on the "orderKey" field.

func OrderKeyContainsFold

func OrderKeyContainsFold(v string) predicate.Message

OrderKeyContainsFold applies the ContainsFold predicate on the "orderKey" field.

func OrderKeyEQ

func OrderKeyEQ(v string) predicate.Message

OrderKeyEQ applies the EQ predicate on the "orderKey" field.

func OrderKeyEqualFold

func OrderKeyEqualFold(v string) predicate.Message

OrderKeyEqualFold applies the EqualFold predicate on the "orderKey" field.

func OrderKeyGT

func OrderKeyGT(v string) predicate.Message

OrderKeyGT applies the GT predicate on the "orderKey" field.

func OrderKeyGTE

func OrderKeyGTE(v string) predicate.Message

OrderKeyGTE applies the GTE predicate on the "orderKey" field.

func OrderKeyHasPrefix

func OrderKeyHasPrefix(v string) predicate.Message

OrderKeyHasPrefix applies the HasPrefix predicate on the "orderKey" field.

func OrderKeyHasSuffix

func OrderKeyHasSuffix(v string) predicate.Message

OrderKeyHasSuffix applies the HasSuffix predicate on the "orderKey" field.

func OrderKeyIn

func OrderKeyIn(vs ...string) predicate.Message

OrderKeyIn applies the In predicate on the "orderKey" field.

func OrderKeyIsNil

func OrderKeyIsNil() predicate.Message

OrderKeyIsNil applies the IsNil predicate on the "orderKey" field.

func OrderKeyLT

func OrderKeyLT(v string) predicate.Message

OrderKeyLT applies the LT predicate on the "orderKey" field.

func OrderKeyLTE

func OrderKeyLTE(v string) predicate.Message

OrderKeyLTE applies the LTE predicate on the "orderKey" field.

func OrderKeyNEQ

func OrderKeyNEQ(v string) predicate.Message

OrderKeyNEQ applies the NEQ predicate on the "orderKey" field.

func OrderKeyNotIn

func OrderKeyNotIn(vs ...string) predicate.Message

OrderKeyNotIn applies the NotIn predicate on the "orderKey" field.

func OrderKeyNotNil

func OrderKeyNotNil() predicate.Message

OrderKeyNotNil applies the NotNil predicate on the "orderKey" field.

func PublishedAt

func PublishedAt(v time.Time) predicate.Message

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

func PublishedAtEQ

func PublishedAtEQ(v time.Time) predicate.Message

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

func PublishedAtGT

func PublishedAtGT(v time.Time) predicate.Message

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

func PublishedAtGTE

func PublishedAtGTE(v time.Time) predicate.Message

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

func PublishedAtIn

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

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

func PublishedAtLT

func PublishedAtLT(v time.Time) predicate.Message

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

func PublishedAtLTE

func PublishedAtLTE(v time.Time) predicate.Message

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

func PublishedAtNEQ

func PublishedAtNEQ(v time.Time) predicate.Message

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

func PublishedAtNotIn

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

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

func TopicID

func TopicID(v uuid.UUID) predicate.Message

TopicID applies equality check predicate on the "topicID" field. It's identical to TopicIDEQ.

func TopicIDEQ

func TopicIDEQ(v uuid.UUID) predicate.Message

TopicIDEQ applies the EQ predicate on the "topicID" field.

func TopicIDIn

func TopicIDIn(vs ...uuid.UUID) predicate.Message

TopicIDIn applies the In predicate on the "topicID" field.

func TopicIDNEQ

func TopicIDNEQ(v uuid.UUID) predicate.Message

TopicIDNEQ applies the NEQ predicate on the "topicID" field.

func TopicIDNotIn

func TopicIDNotIn(vs ...uuid.UUID) predicate.Message

TopicIDNotIn applies the NotIn predicate on the "topicID" 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 Message queries.

func ByDeliveries

func ByDeliveries(term sql.OrderTerm, terms ...sql.OrderTerm) OrderOption

ByDeliveries orders the results by deliveries terms.

func ByDeliveriesCount

func ByDeliveriesCount(opts ...sql.OrderTermOption) OrderOption

ByDeliveriesCount orders the results by deliveries count.

func ByID

func ByID(opts ...sql.OrderTermOption) OrderOption

ByID orders the results by the id field.

func ByOrderKey

func ByOrderKey(opts ...sql.OrderTermOption) OrderOption

ByOrderKey orders the results by the orderKey field.

func ByPublishedAt

func ByPublishedAt(opts ...sql.OrderTermOption) OrderOption

ByPublishedAt orders the results by the publishedAt field.

func ByTopicField

func ByTopicField(field string, opts ...sql.OrderTermOption) OrderOption

ByTopicField orders the results by topic field.

func ByTopicID

func ByTopicID(opts ...sql.OrderTermOption) OrderOption

ByTopicID orders the results by the topicID field.

Jump to

Keyboard shortcuts

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