message

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jun 29, 2022 License: MIT Imports: 4 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"
	// FieldMessageID holds the string denoting the messageid field in the database.
	FieldMessageID = "message_id"
	// FieldInternalID holds the string denoting the internalid field in the database.
	FieldInternalID = "internal_id"
	// FieldDate holds the string denoting the date field in the database.
	FieldDate = "date"
	// FieldSize holds the string denoting the size field in the database.
	FieldSize = "size"
	// FieldBody holds the string denoting the body field in the database.
	FieldBody = "body"
	// FieldBodyStructure holds the string denoting the bodystructure field in the database.
	FieldBodyStructure = "body_structure"
	// FieldEnvelope holds the string denoting the envelope field in the database.
	FieldEnvelope = "envelope"
	// FieldDeleted holds the string denoting the deleted field in the database.
	FieldDeleted = "deleted"
	// EdgeFlags holds the string denoting the flags edge name in mutations.
	EdgeFlags = "flags"
	// EdgeUIDs holds the string denoting the uids edge name in mutations.
	EdgeUIDs = "UIDs"
	// Table holds the table name of the message in the database.
	Table = "messages"
	// FlagsTable is the table that holds the flags relation/edge.
	FlagsTable = "message_flags"
	// FlagsInverseTable is the table name for the MessageFlag entity.
	// It exists in this package in order to avoid circular dependency with the "messageflag" package.
	FlagsInverseTable = "message_flags"
	// FlagsColumn is the table column denoting the flags relation/edge.
	FlagsColumn = "message_flags"
	// UIDsTable is the table that holds the UIDs relation/edge.
	UIDsTable = "ui_ds"
	// UIDsInverseTable is the table name for the UID entity.
	// It exists in this package in order to avoid circular dependency with the "uid" package.
	UIDsInverseTable = "ui_ds"
	// UIDsColumn is the table column denoting the UIDs relation/edge.
	UIDsColumn = "uid_message"
)

Variables

Columns holds all SQL columns for message fields.

View Source
var (
	// DefaultDeleted holds the default value on creation for the "Deleted" field.
	DefaultDeleted bool
)

Functions

func And

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

And groups predicates with the AND operator between them.

func Body

func Body(v string) predicate.Message

Body applies equality check predicate on the "Body" field. It's identical to BodyEQ.

func BodyContains

func BodyContains(v string) predicate.Message

BodyContains applies the Contains predicate on the "Body" field.

func BodyContainsFold

func BodyContainsFold(v string) predicate.Message

BodyContainsFold applies the ContainsFold predicate on the "Body" field.

func BodyEQ

func BodyEQ(v string) predicate.Message

BodyEQ applies the EQ predicate on the "Body" field.

func BodyEqualFold

func BodyEqualFold(v string) predicate.Message

BodyEqualFold applies the EqualFold predicate on the "Body" field.

func BodyGT

func BodyGT(v string) predicate.Message

BodyGT applies the GT predicate on the "Body" field.

func BodyGTE

func BodyGTE(v string) predicate.Message

BodyGTE applies the GTE predicate on the "Body" field.

func BodyHasPrefix

func BodyHasPrefix(v string) predicate.Message

BodyHasPrefix applies the HasPrefix predicate on the "Body" field.

func BodyHasSuffix

func BodyHasSuffix(v string) predicate.Message

BodyHasSuffix applies the HasSuffix predicate on the "Body" field.

func BodyIn

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

BodyIn applies the In predicate on the "Body" field.

func BodyLT

func BodyLT(v string) predicate.Message

BodyLT applies the LT predicate on the "Body" field.

func BodyLTE

func BodyLTE(v string) predicate.Message

BodyLTE applies the LTE predicate on the "Body" field.

func BodyNEQ

func BodyNEQ(v string) predicate.Message

BodyNEQ applies the NEQ predicate on the "Body" field.

func BodyNotIn

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

BodyNotIn applies the NotIn predicate on the "Body" field.

func BodyStructure

func BodyStructure(v string) predicate.Message

BodyStructure applies equality check predicate on the "BodyStructure" field. It's identical to BodyStructureEQ.

func BodyStructureContains

func BodyStructureContains(v string) predicate.Message

BodyStructureContains applies the Contains predicate on the "BodyStructure" field.

func BodyStructureContainsFold

func BodyStructureContainsFold(v string) predicate.Message

BodyStructureContainsFold applies the ContainsFold predicate on the "BodyStructure" field.

func BodyStructureEQ

func BodyStructureEQ(v string) predicate.Message

BodyStructureEQ applies the EQ predicate on the "BodyStructure" field.

func BodyStructureEqualFold

func BodyStructureEqualFold(v string) predicate.Message

BodyStructureEqualFold applies the EqualFold predicate on the "BodyStructure" field.

func BodyStructureGT

func BodyStructureGT(v string) predicate.Message

BodyStructureGT applies the GT predicate on the "BodyStructure" field.

func BodyStructureGTE

func BodyStructureGTE(v string) predicate.Message

BodyStructureGTE applies the GTE predicate on the "BodyStructure" field.

func BodyStructureHasPrefix

func BodyStructureHasPrefix(v string) predicate.Message

BodyStructureHasPrefix applies the HasPrefix predicate on the "BodyStructure" field.

func BodyStructureHasSuffix

func BodyStructureHasSuffix(v string) predicate.Message

BodyStructureHasSuffix applies the HasSuffix predicate on the "BodyStructure" field.

func BodyStructureIn

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

BodyStructureIn applies the In predicate on the "BodyStructure" field.

func BodyStructureLT

func BodyStructureLT(v string) predicate.Message

BodyStructureLT applies the LT predicate on the "BodyStructure" field.

func BodyStructureLTE

func BodyStructureLTE(v string) predicate.Message

BodyStructureLTE applies the LTE predicate on the "BodyStructure" field.

func BodyStructureNEQ

func BodyStructureNEQ(v string) predicate.Message

BodyStructureNEQ applies the NEQ predicate on the "BodyStructure" field.

func BodyStructureNotIn

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

BodyStructureNotIn applies the NotIn predicate on the "BodyStructure" field.

func Date

func Date(v time.Time) predicate.Message

Date applies equality check predicate on the "Date" field. It's identical to DateEQ.

func DateEQ

func DateEQ(v time.Time) predicate.Message

DateEQ applies the EQ predicate on the "Date" field.

func DateGT

func DateGT(v time.Time) predicate.Message

DateGT applies the GT predicate on the "Date" field.

func DateGTE

func DateGTE(v time.Time) predicate.Message

DateGTE applies the GTE predicate on the "Date" field.

func DateIn

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

DateIn applies the In predicate on the "Date" field.

func DateLT

func DateLT(v time.Time) predicate.Message

DateLT applies the LT predicate on the "Date" field.

func DateLTE

func DateLTE(v time.Time) predicate.Message

DateLTE applies the LTE predicate on the "Date" field.

func DateNEQ

func DateNEQ(v time.Time) predicate.Message

DateNEQ applies the NEQ predicate on the "Date" field.

func DateNotIn

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

DateNotIn applies the NotIn predicate on the "Date" field.

func Deleted added in v0.8.1

func Deleted(v bool) predicate.Message

Deleted applies equality check predicate on the "Deleted" field. It's identical to DeletedEQ.

func DeletedEQ added in v0.8.1

func DeletedEQ(v bool) predicate.Message

DeletedEQ applies the EQ predicate on the "Deleted" field.

func DeletedNEQ added in v0.8.1

func DeletedNEQ(v bool) predicate.Message

DeletedNEQ applies the NEQ predicate on the "Deleted" field.

func Envelope

func Envelope(v string) predicate.Message

Envelope applies equality check predicate on the "Envelope" field. It's identical to EnvelopeEQ.

func EnvelopeContains

func EnvelopeContains(v string) predicate.Message

EnvelopeContains applies the Contains predicate on the "Envelope" field.

func EnvelopeContainsFold

func EnvelopeContainsFold(v string) predicate.Message

EnvelopeContainsFold applies the ContainsFold predicate on the "Envelope" field.

func EnvelopeEQ

func EnvelopeEQ(v string) predicate.Message

EnvelopeEQ applies the EQ predicate on the "Envelope" field.

func EnvelopeEqualFold

func EnvelopeEqualFold(v string) predicate.Message

EnvelopeEqualFold applies the EqualFold predicate on the "Envelope" field.

func EnvelopeGT

func EnvelopeGT(v string) predicate.Message

EnvelopeGT applies the GT predicate on the "Envelope" field.

func EnvelopeGTE

func EnvelopeGTE(v string) predicate.Message

EnvelopeGTE applies the GTE predicate on the "Envelope" field.

func EnvelopeHasPrefix

func EnvelopeHasPrefix(v string) predicate.Message

EnvelopeHasPrefix applies the HasPrefix predicate on the "Envelope" field.

func EnvelopeHasSuffix

func EnvelopeHasSuffix(v string) predicate.Message

EnvelopeHasSuffix applies the HasSuffix predicate on the "Envelope" field.

func EnvelopeIn

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

EnvelopeIn applies the In predicate on the "Envelope" field.

func EnvelopeLT

func EnvelopeLT(v string) predicate.Message

EnvelopeLT applies the LT predicate on the "Envelope" field.

func EnvelopeLTE

func EnvelopeLTE(v string) predicate.Message

EnvelopeLTE applies the LTE predicate on the "Envelope" field.

func EnvelopeNEQ

func EnvelopeNEQ(v string) predicate.Message

EnvelopeNEQ applies the NEQ predicate on the "Envelope" field.

func EnvelopeNotIn

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

EnvelopeNotIn applies the NotIn predicate on the "Envelope" field.

func HasFlags

func HasFlags() predicate.Message

HasFlags applies the HasEdge predicate on the "flags" edge.

func HasFlagsWith

func HasFlagsWith(preds ...predicate.MessageFlag) predicate.Message

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

func HasUIDs

func HasUIDs() predicate.Message

HasUIDs applies the HasEdge predicate on the "UIDs" edge.

func HasUIDsWith

func HasUIDsWith(preds ...predicate.UID) predicate.Message

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

func ID

func ID(id int) predicate.Message

ID filters vertices based on their ID field.

func IDEQ

func IDEQ(id int) predicate.Message

IDEQ applies the EQ predicate on the ID field.

func IDGT

func IDGT(id int) predicate.Message

IDGT applies the GT predicate on the ID field.

func IDGTE

func IDGTE(id int) predicate.Message

IDGTE applies the GTE predicate on the ID field.

func IDIn

func IDIn(ids ...int) predicate.Message

IDIn applies the In predicate on the ID field.

func IDLT

func IDLT(id int) predicate.Message

IDLT applies the LT predicate on the ID field.

func IDLTE

func IDLTE(id int) predicate.Message

IDLTE applies the LTE predicate on the ID field.

func IDNEQ

func IDNEQ(id int) predicate.Message

IDNEQ applies the NEQ predicate on the ID field.

func IDNotIn

func IDNotIn(ids ...int) predicate.Message

IDNotIn applies the NotIn predicate on the ID field.

func InternalID

func InternalID(v string) predicate.Message

InternalID applies equality check predicate on the "InternalID" field. It's identical to InternalIDEQ.

func InternalIDContains

func InternalIDContains(v string) predicate.Message

InternalIDContains applies the Contains predicate on the "InternalID" field.

func InternalIDContainsFold

func InternalIDContainsFold(v string) predicate.Message

InternalIDContainsFold applies the ContainsFold predicate on the "InternalID" field.

func InternalIDEQ

func InternalIDEQ(v string) predicate.Message

InternalIDEQ applies the EQ predicate on the "InternalID" field.

func InternalIDEqualFold

func InternalIDEqualFold(v string) predicate.Message

InternalIDEqualFold applies the EqualFold predicate on the "InternalID" field.

func InternalIDGT

func InternalIDGT(v string) predicate.Message

InternalIDGT applies the GT predicate on the "InternalID" field.

func InternalIDGTE

func InternalIDGTE(v string) predicate.Message

InternalIDGTE applies the GTE predicate on the "InternalID" field.

func InternalIDHasPrefix

func InternalIDHasPrefix(v string) predicate.Message

InternalIDHasPrefix applies the HasPrefix predicate on the "InternalID" field.

func InternalIDHasSuffix

func InternalIDHasSuffix(v string) predicate.Message

InternalIDHasSuffix applies the HasSuffix predicate on the "InternalID" field.

func InternalIDIn

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

InternalIDIn applies the In predicate on the "InternalID" field.

func InternalIDLT

func InternalIDLT(v string) predicate.Message

InternalIDLT applies the LT predicate on the "InternalID" field.

func InternalIDLTE

func InternalIDLTE(v string) predicate.Message

InternalIDLTE applies the LTE predicate on the "InternalID" field.

func InternalIDNEQ

func InternalIDNEQ(v string) predicate.Message

InternalIDNEQ applies the NEQ predicate on the "InternalID" field.

func InternalIDNotIn

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

InternalIDNotIn applies the NotIn predicate on the "InternalID" field.

func MessageID

func MessageID(v string) predicate.Message

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

func MessageIDContains

func MessageIDContains(v string) predicate.Message

MessageIDContains applies the Contains predicate on the "MessageID" field.

func MessageIDContainsFold

func MessageIDContainsFold(v string) predicate.Message

MessageIDContainsFold applies the ContainsFold predicate on the "MessageID" field.

func MessageIDEQ

func MessageIDEQ(v string) predicate.Message

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

func MessageIDEqualFold

func MessageIDEqualFold(v string) predicate.Message

MessageIDEqualFold applies the EqualFold predicate on the "MessageID" field.

func MessageIDGT

func MessageIDGT(v string) predicate.Message

MessageIDGT applies the GT predicate on the "MessageID" field.

func MessageIDGTE

func MessageIDGTE(v string) predicate.Message

MessageIDGTE applies the GTE predicate on the "MessageID" field.

func MessageIDHasPrefix

func MessageIDHasPrefix(v string) predicate.Message

MessageIDHasPrefix applies the HasPrefix predicate on the "MessageID" field.

func MessageIDHasSuffix

func MessageIDHasSuffix(v string) predicate.Message

MessageIDHasSuffix applies the HasSuffix predicate on the "MessageID" field.

func MessageIDIn

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

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

func MessageIDLT

func MessageIDLT(v string) predicate.Message

MessageIDLT applies the LT predicate on the "MessageID" field.

func MessageIDLTE

func MessageIDLTE(v string) predicate.Message

MessageIDLTE applies the LTE predicate on the "MessageID" field.

func MessageIDNEQ

func MessageIDNEQ(v string) predicate.Message

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

func MessageIDNotIn

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

MessageIDNotIn applies the NotIn predicate on the "MessageID" 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 Size

func Size(v int) predicate.Message

Size applies equality check predicate on the "Size" field. It's identical to SizeEQ.

func SizeEQ

func SizeEQ(v int) predicate.Message

SizeEQ applies the EQ predicate on the "Size" field.

func SizeGT

func SizeGT(v int) predicate.Message

SizeGT applies the GT predicate on the "Size" field.

func SizeGTE

func SizeGTE(v int) predicate.Message

SizeGTE applies the GTE predicate on the "Size" field.

func SizeIn

func SizeIn(vs ...int) predicate.Message

SizeIn applies the In predicate on the "Size" field.

func SizeLT

func SizeLT(v int) predicate.Message

SizeLT applies the LT predicate on the "Size" field.

func SizeLTE

func SizeLTE(v int) predicate.Message

SizeLTE applies the LTE predicate on the "Size" field.

func SizeNEQ

func SizeNEQ(v int) predicate.Message

SizeNEQ applies the NEQ predicate on the "Size" field.

func SizeNotIn

func SizeNotIn(vs ...int) predicate.Message

SizeNotIn applies the NotIn predicate on the "Size" field.

func ValidColumn

func ValidColumn(column string) bool

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

Types

This section is empty.

Jump to

Keyboard shortcuts

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