message

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 17, 2022 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"
	// FieldMessageID holds the string denoting the messageid field in the database.
	FieldMessageID = "message_id"
	// FieldRemoteID holds the string denoting the remoteid field in the database.
	FieldRemoteID = "remote_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 MessageID

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

func MessageIDContains

func MessageIDContains(v imap.InternalMessageID) predicate.Message

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

func MessageIDContainsFold

func MessageIDContainsFold(v imap.InternalMessageID) predicate.Message

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

func MessageIDEQ

func MessageIDEQ(v imap.InternalMessageID) predicate.Message

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

func MessageIDEqualFold

func MessageIDEqualFold(v imap.InternalMessageID) predicate.Message

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

func MessageIDGT

func MessageIDGT(v imap.InternalMessageID) predicate.Message

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

func MessageIDGTE

func MessageIDGTE(v imap.InternalMessageID) predicate.Message

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

func MessageIDHasPrefix

func MessageIDHasPrefix(v imap.InternalMessageID) predicate.Message

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

func MessageIDHasSuffix

func MessageIDHasSuffix(v imap.InternalMessageID) predicate.Message

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

func MessageIDIn

func MessageIDIn(vs ...imap.InternalMessageID) predicate.Message

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

func MessageIDLT

func MessageIDLT(v imap.InternalMessageID) predicate.Message

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

func MessageIDLTE

func MessageIDLTE(v imap.InternalMessageID) predicate.Message

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

func MessageIDNEQ

func MessageIDNEQ(v imap.InternalMessageID) predicate.Message

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

func MessageIDNotIn

func MessageIDNotIn(vs ...imap.InternalMessageID) 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 RemoteID added in v0.11.0

func RemoteID(v imap.MessageID) predicate.Message

RemoteID applies equality check predicate on the "RemoteID" field. It's identical to RemoteIDEQ.

func RemoteIDContains added in v0.11.0

func RemoteIDContains(v imap.MessageID) predicate.Message

RemoteIDContains applies the Contains predicate on the "RemoteID" field.

func RemoteIDContainsFold added in v0.11.0

func RemoteIDContainsFold(v imap.MessageID) predicate.Message

RemoteIDContainsFold applies the ContainsFold predicate on the "RemoteID" field.

func RemoteIDEQ added in v0.11.0

func RemoteIDEQ(v imap.MessageID) predicate.Message

RemoteIDEQ applies the EQ predicate on the "RemoteID" field.

func RemoteIDEqualFold added in v0.11.0

func RemoteIDEqualFold(v imap.MessageID) predicate.Message

RemoteIDEqualFold applies the EqualFold predicate on the "RemoteID" field.

func RemoteIDGT added in v0.11.0

func RemoteIDGT(v imap.MessageID) predicate.Message

RemoteIDGT applies the GT predicate on the "RemoteID" field.

func RemoteIDGTE added in v0.11.0

func RemoteIDGTE(v imap.MessageID) predicate.Message

RemoteIDGTE applies the GTE predicate on the "RemoteID" field.

func RemoteIDHasPrefix added in v0.11.0

func RemoteIDHasPrefix(v imap.MessageID) predicate.Message

RemoteIDHasPrefix applies the HasPrefix predicate on the "RemoteID" field.

func RemoteIDHasSuffix added in v0.11.0

func RemoteIDHasSuffix(v imap.MessageID) predicate.Message

RemoteIDHasSuffix applies the HasSuffix predicate on the "RemoteID" field.

func RemoteIDIn added in v0.11.0

func RemoteIDIn(vs ...imap.MessageID) predicate.Message

RemoteIDIn applies the In predicate on the "RemoteID" field.

func RemoteIDIsNil added in v0.11.0

func RemoteIDIsNil() predicate.Message

RemoteIDIsNil applies the IsNil predicate on the "RemoteID" field.

func RemoteIDLT added in v0.11.0

func RemoteIDLT(v imap.MessageID) predicate.Message

RemoteIDLT applies the LT predicate on the "RemoteID" field.

func RemoteIDLTE added in v0.11.0

func RemoteIDLTE(v imap.MessageID) predicate.Message

RemoteIDLTE applies the LTE predicate on the "RemoteID" field.

func RemoteIDNEQ added in v0.11.0

func RemoteIDNEQ(v imap.MessageID) predicate.Message

RemoteIDNEQ applies the NEQ predicate on the "RemoteID" field.

func RemoteIDNotIn added in v0.11.0

func RemoteIDNotIn(vs ...imap.MessageID) predicate.Message

RemoteIDNotIn applies the NotIn predicate on the "RemoteID" field.

func RemoteIDNotNil added in v0.11.0

func RemoteIDNotNil() predicate.Message

RemoteIDNotNil applies the NotNil predicate on the "RemoteID" field.

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